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

Mixed SRID behavior in ST_DISTANCE vs. ST_DISTANCESPHERE #1292

Closed
apano-on opened this issue Mar 31, 2022 · 2 comments
Closed

Mixed SRID behavior in ST_DISTANCE vs. ST_DISTANCESPHERE #1292

apano-on opened this issue Mar 31, 2022 · 2 comments

Comments

@apano-on
Copy link

ST_DISTANCE and ST_DISTANCESPHERE exhibit different behavior when inputs with mixed SRIDs are provided:

ST_DISTANCE --> SQLException("Operation on mixed SRID geometries not supported"). See here
ST_DISTANCESPHERE --> null. See here.

Shouldn't the behavior be consistent? In particular the error for ST_DISTANCE is more informative, while for ST_DISTANCESPHERE it is not very informative. I do not know if there is any official guideline or recommendation.

@ebocher
Copy link
Member

ebocher commented Apr 1, 2022

Thanks for reporting.
ST_DISTANCESPHERE must have the same behaviour than ST_DISTANCE

@ebocher
Copy link
Member

ebocher commented Apr 1, 2022

Fixed thanks

@ebocher ebocher closed this as completed Apr 1, 2022
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

2 participants