-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Add support for geometrycollections to GeometryTreeReader and Writer #49608
Conversation
Add support for multi shapes and geometry collections to GeometryTreeReader and GeometryTreeWriter. Relates elastic#37206
Pinging @elastic/es-analytics-geo (:Analytics/Geo) |
server/src/main/java/org/elasticsearch/common/geo/GeometryTreeReader.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/common/geo/GeometryTreeWriter.java
Show resolved
Hide resolved
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.
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.
server/src/main/java/org/elasticsearch/common/geo/GeometryTreeReader.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/common/geo/GeometryTreeWriter.java
Show resolved
Hide resolved
Do you think we can do centroid optimization everywhere in another pass? |
yes. that is reasonable! |
Adds support geometry collections to GeometryTreeReader
and GeometryTreeWriter.
Relates #37206