Пример #1
0
 public TerrainTile(GeoPackage.Database database)
 {
     Database = database;
     foreach (var layer in Database.Layers("2d-gridded-coverage"))
     {
         if (layer.SpatialReferenceSystemID != 4326)
         {
             continue;
         }
         Elevation = (RasterLayer)layer;
     }
     foreach (var layer in Database.Layers("tiles"))
     {
         if (layer.SpatialReferenceSystemID != 4326)
         {
             continue;
         }
         Imagery = (RasterLayer)layer;
     }
     if (Elevation == null)
     {
         return;
     }
     ElevationTileMatrixSet = Elevation.TileMatrices().ToList();
 }