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

geo_distance does not support GeoJSON for points #86834

Open
craigtaverner opened this issue May 17, 2022 · 1 comment
Open

geo_distance does not support GeoJSON for points #86834

craigtaverner opened this issue May 17, 2022 · 1 comment
Assignees
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)

Comments

@craigtaverner
Copy link
Contributor

Description

Defining points using GeoJSON has been supported in the geo_shape field type all along, but recently we added GeoJSON support for geo_point and point (geographic and cartesian respectively):

This means that all three field types now consistently support both GeoJSON and WKT for points. However, it turns out that this support does not extend to the geo_distance query, which supports all the same point formats as geo_point except for GeoJSON. Interestingly, the geo_bounding_box query does support GeoJSON for the top_left and bottom_right points (as well as WKT and other point formats).

Adding GeoJSON to geo_distance should close this consistency gap.

@craigtaverner craigtaverner added >enhancement needs:triage Requires assignment of a team area label :Analytics/Geo Indexing, search aggregations of geo points and shapes labels May 17, 2022
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label May 17, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@craigtaverner craigtaverner self-assigned this May 18, 2022
@jtibshirani jtibshirani removed the needs:triage Requires assignment of a team area label label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)
Projects
None yet
Development

No branches or pull requests

3 participants