Skip to content

Add support for geometrycollections to GeometryTreeReader and Writer #49608

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

Merged

Conversation

imotov
Copy link
Contributor

@imotov imotov commented Nov 26, 2019

Adds support geometry collections to GeometryTreeReader
and GeometryTreeWriter.

Relates #37206

Add support for multi shapes and geometry collections to
GeometryTreeReader and GeometryTreeWriter.

Relates elastic#37206
@imotov imotov added the :Analytics/Geo Indexing, search aggregations of geo points and shapes label Nov 26, 2019
@imotov imotov requested a review from talevy November 26, 2019 18:35
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@talevy talevy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good to me, I just realized something about the nestedness of geometry-collection and wanted to be sure we are consistent here with regards to what we allow, and how we parse.

a side-note about the geometrycollection is that if someone indexes a geometry-collection with one item that is a geometrycollection, then we would be duplicating the centroids here as well.

@imotov
Copy link
Contributor Author

imotov commented Nov 27, 2019

Do you think we can do centroid optimization everywhere in another pass?

@talevy
Copy link
Contributor

talevy commented Nov 27, 2019

Do you think we can do centroid optimization everywhere in another pass?

yes. that is reasonable!

@imotov imotov merged commit ffb3d27 into elastic:geoshape-doc-values Nov 27, 2019
imotov added a commit that referenced this pull request Nov 27, 2019
…49608)

Adds support geometry collections to GeometryTreeReader
and GeometryTreeWriter.

Relates #37206
@imotov imotov deleted the geoshape-doc-values-collections branch May 1, 2020 22:11
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants