nlsfi / hakunapi

OGC API Features Java server
https://github.com/nlsfi/hakunapi
MIT License
12 stars 3 forks source link

Coordinate reference systems that differ only by axis order do not work #78

Closed jampukka closed 12 months ago

jampukka commented 1 year ago

The following request to a collection

/collections/{collectionId}/items?crs=http://www.opengis.net/def/crs/EPSG/0/3047&bbox=6854058.383,333886.496,6854061.684,333893.007&bbox-crs=http://www.opengis.net/def/crs/EPSG/0/3047

fails with error: ERROR: ST_Intersects: Operation on mixed SRID geometries (Polygon, 3067) != (Polygon, 3047)

jampukka commented 1 year ago

Turns out GeoToolsProjectionTransformerFactory was too quick to judge two systems as equal, which caused geometry srid not to get updated and caused ProjectionHelper.reprojectToStorageCRS(prop, geom) to not do what it claims to do.

jampukka commented 12 months ago

Closed with #80