Skip to content

Commit

Permalink
geodesic support
Browse files Browse the repository at this point in the history
  • Loading branch information
bosborn committed Mar 21, 2024
1 parent ad80a38 commit f7bfe1d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/java/mil/nga/geopackage/GeoPackageExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public class GeoPackageExample {
private static final boolean CONTENTS_ID = true;
private static final boolean FEATURE_STYLE = true;

private static final boolean GEODESIC = false;

private static final String ID_COLUMN = "id";
private static final String GEOMETRY_COLUMN = "geometry";
private static final String TEXT_COLUMN = "text";
Expand Down Expand Up @@ -1087,7 +1089,7 @@ private static void createGeometryIndexExtension(GeoPackage geoPackage) {

FeatureDao featureDao = geoPackage.getFeatureDao(featureTable);
FeatureIndexManager indexer = new FeatureIndexManager(geoPackage,
featureDao);
featureDao, GEODESIC);
indexer.setIndexLocation(FeatureIndexType.GEOPACKAGE);
indexer.index();
indexer.close();
Expand All @@ -1103,7 +1105,7 @@ private static void createFeatureTileLinkExtension(GeoPackage geoPackage)

FeatureDao featureDao = geoPackage.getFeatureDao(featureTable);
FeatureTiles featureTiles = new DefaultFeatureTiles(geoPackage,
featureDao);
featureDao, GEODESIC);

BoundingBox boundingBox = featureDao.getBoundingBox();
Projection projection = featureDao.getProjection();
Expand Down Expand Up @@ -1665,7 +1667,8 @@ private static void createCoverageDataTiffExtension(GeoPackage geoPackage)
private static void createRTreeSpatialIndexExtension(
GeoPackage geoPackage) {

RTreeIndexExtension extension = new RTreeIndexExtension(geoPackage);
RTreeIndexExtension extension = new RTreeIndexExtension(geoPackage,
GEODESIC);

List<String> featureTables = geoPackage.getFeatureTables();
for (String tableName : featureTables) {
Expand Down

0 comments on commit f7bfe1d

Please sign in to comment.