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

Add Distance and IsWithinDistance overloads with a use_spheroid flag #1638

Closed
tiborfsk opened this issue Jan 6, 2021 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tiborfsk
Copy link
Contributor

tiborfsk commented Jan 6, 2021

I would like to query nearest locations in geodetic coordinates but using sphere measurements (because it is faster than using spheroid measurements and still sufficiently exact for my use case).

It could be done by adding optional UseSpheroid flag into IsWithinDistance method (same as in relevant PostGIS function https://postgis.net/docs/ST_DWithin.html). Maybe another alternative is adding support for <-> operator but probably adding that flag is easier.

@roji
Copy link
Member

roji commented Jan 6, 2021

Are you interested in submitting a PR for this?

@roji roji added enhancement New feature or request good first issue Good for newcomers labels Jan 6, 2021
@roji roji closed this as completed in ba26542 Jan 7, 2021
@roji roji changed the title Spatial IsWithinDistance(geom2,d) - add support for use_spheroid flag Add Distance and IsWithinDistance overloads with a use_spheroid flag Jan 7, 2021
@roji roji removed the good first issue Good for newcomers label Jan 7, 2021
@roji roji added this to the 6.0.0 milestone Jan 7, 2021
@roji
Copy link
Member

roji commented Jan 7, 2021

Thanks for your contribution @tiborfsk!

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

No branches or pull requests

2 participants