Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jampukka opened this issue Nov 6, 2023 · 2 comments
Closed
Milestone

Comments

@jampukka
Copy link
Collaborator

jampukka commented Nov 6, 2023

The following request to a collection

  • with storageCrs EPSG:3067

/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 jampukka changed the title BboxExtraPropertyParam doesn BboxExtraPropertyParam doesn't work correctly with bbox-crs Nov 6, 2023
@jampukka jampukka changed the title BboxExtraPropertyParam doesn't work correctly with bbox-crs Coordinate reference systems that differ only by axis order do not work Nov 10, 2023
@jampukka
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Closed with #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant