Skip to content

Commit

Permalink
DGIWG example tile gridded coverage data OGC GeoPackage test suite fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bosborn committed Sep 20, 2023
1 parent b068c25 commit ed05aa3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/mil/nga/geopackage/dgiwg/DGIWGExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import mil.nga.geopackage.features.user.FeatureRow;
import mil.nga.geopackage.geom.GeoPackageGeometryData;
import mil.nga.geopackage.io.GeoPackageIOUtils;
import mil.nga.geopackage.srs.SpatialReferenceSystemDao;
import mil.nga.geopackage.tiles.ImageUtils;
import mil.nga.geopackage.tiles.TileBoundingBoxUtils;
import mil.nga.geopackage.tiles.TileGrid;
Expand All @@ -67,6 +68,7 @@
import mil.nga.geopackage.tiles.user.TileRow;
import mil.nga.geopackage.tiles.user.TileTableMetadata;
import mil.nga.geopackage.user.custom.UserCustomColumn;
import mil.nga.proj.ProjectionConstants;
import mil.nga.sf.GeometryType;
import mil.nga.sf.LineString;
import mil.nga.sf.Point;
Expand Down Expand Up @@ -693,6 +695,11 @@ private static void createCoverageDataExtension(DGIWGGeoPackage geoPackage)

BoundingBox bbox = tileTableDao.getBoundingBox();

SpatialReferenceSystemDao srsDao = geoPackage
.getSpatialReferenceSystemDao();
srsDao.getOrCreateFromEpsg(
ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM_GEOGRAPHICAL_3D);

TileTableMetadata metadata = TileTableMetadata.create(
COVERAGE_DATA_TABLE,
tileTableDao.getContents().getBoundingBox(), bbox,
Expand Down

0 comments on commit ed05aa3

Please sign in to comment.