Skip to content

Commit

Permalink
Fix creation of CRS with longitudeFirst in GeoPackageReader
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Feb 4, 2025
1 parent 4ecb02d commit cc47777
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class GeoPackageReader extends SimpleReader<SimpleFeature> {
if (sourceProjection != null) {
try {
var sourceCRS = CRS.decode(sourceProjection);
var latLonCRS = CRS.decode("EPSG:4326");
var latLonCRS = CRS.decode("EPSG:4326", true);
coordinateTransform = CRS.findMathTransform(sourceCRS, latLonCRS);
} catch (FactoryException e) {
throw new FileFormatException("Bad reference system", e);
Expand Down Expand Up @@ -123,7 +123,7 @@ public long getFeatureCount() {

@Override
public void readFeatures(Consumer<SimpleFeature> next) throws Exception {
var latLonCRS = CRS.decode("EPSG:4326");
var latLonCRS = CRS.decode("EPSG:4326", true);
long id = 0;
boolean loggedMissingGeometry = false;

Expand Down

0 comments on commit cc47777

Please sign in to comment.