-
Notifications
You must be signed in to change notification settings - Fork 25.2k
geo-shape-doc-values centroid calculation should handle polygons as lines/points and lines as points #52303
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
Labels
:Analytics/Geo
Indexing, search aggregations of geo points and shapes
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Comments
Pinging @elastic/es-analytics-geo (:Analytics/Geo) |
My opinion here is those geometries are degenerated and they should be treated as the final shape. So if a polygon becomes a line, the |
talevy
added a commit
to talevy/elasticsearch
that referenced
this issue
Feb 19, 2020
This commit modifies the centroid-calculator/dimensional-shape-type to properly support the instances of polygons that have no area and lines that have no length. Beforehand N/A were returned for the centroid values, but it is best to downcast the shape type to the appropriate type. Closes elastic#52303.
talevy
added a commit
that referenced
this issue
Feb 24, 2020
This commit modifies the centroid-calculator/dimensional-shape-type to properly support the instances of polygons that have no area and lines that have no length. Beforehand N/A were returned for the centroid values, but it is best to downcast the shape type to the appropriate type. Closes #52303
talevy
added a commit
that referenced
this issue
Feb 24, 2020
This commit modifies the centroid-calculator/dimensional-shape-type to properly support the instances of polygons that have no area and lines that have no length. Beforehand N/A were returned for the centroid values, but it is best to downcast the shape type to the appropriate type. Closes #52303
this was closed in #52500 |
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
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
possible solution A
This can be achieved by updating the
DimensionalShapeType
of the geometry for such geometries. The downside of this is that then we would love information about what type of geometry the field value was.possible solution B
The other option is to keep the original
DimensionalShapeType
, and instead have a place-holder weight that is close to0
for such geometries.relates to #50834
The text was updated successfully, but these errors were encountered: