-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Added documentation on GeoJSON format for points and geo-points #86066
Added documentation on GeoJSON format for points and geo-points #86066
Conversation
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
653e73d
to
46f2c6c
Compare
@craigtaverner maybe it would be good to update this branch to get reviewed? |
And geo-points.
46f2c6c
to
74d6ce7
Compare
@@ -77,8 +77,9 @@ sorted list of `double` values. See | |||
<<painless-runtime-double,double_field context>>. | |||
|
|||
`geo_point_field`:: | |||
The context for {ref}/geo-point.html[`geo-point` fields]. `emit` takes a | |||
`geo-point` value and the script returns coordinates for the geo point. See | |||
The context for {ref}/geo-point.html[`geo-point` fields]. `emit` takes two double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iverase Could you verify this change. I think the old description seemed quite incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a look and yes the explanation of the emit is correct, thanks! What it is not clear to me what we refer here to what the script returns. This is currently a bug as it should behave as an indexed geo_point which is not the case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this geo_point context is different to the out put of the fields API. lThe change looks good to me then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Recent work added support for GeoJSON to the following field types:
geo-point
Support GeoJSON for geo_point #85120 (merged into 8.2.0)point
Support 'GeoJSON' in CartesianPoint for 'point' #85442 (targeting 8.3.0)This PR provides documentation for these. Since this is based on the branch for cartesian point, it includes the commit from that branch. If that PR is merged first, then this PR will only contain the documentation commit. In either case the intention is to review only the documentation commit in this PR.