Exemple #1
0
 protected QuadTile(BoundingBox boundingBox, int zoomLevel, int x, int y)
 {
     BoundingBox     = boundingBox;
     left            = boundingBox.Left;
     right           = boundingBox.Right;
     top             = boundingBox.Top;
     bottom          = boundingBox.Bottom;
     TileCoordinates = new TileCoordinates(zoomLevel, x, y);
 }
Exemple #2
0
        private void Update(TileCoordinates tile, Geometri.Område area, Geometry geometry)
        {
            VectorQuadTile qt = tileStore.Load(tile.GetRelativePath());

            if (!qt.ClipAndAdd(area, geometry, layer.TileOverlapRatio))
            {
                //throw new Exception("Update yields no result for tile " + tile.ToString());
                return;
            }
            Save(qt);
        }
Exemple #3
0
 public TileCoordinatesWithBoundingBox(BoundingBox boundingBox, int zoomLevel, int x, int y)
 {
     BoundingBox     = boundingBox;
     TileCoordinates = new TileCoordinates(zoomLevel, x, y);
 }