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

Fix geo_shape centroid calculation for downgraded shapes #52500

Merged
merged 6 commits into from
Feb 24, 2020

Conversation

talevy
Copy link
Contributor

@talevy talevy commented 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 #52303.

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 talevy added the :Analytics/Geo Indexing, search aggregations of geo points and shapes label Feb 19, 2020
@talevy talevy requested review from nknize and iverase February 19, 2020 03:29
@elasticmachine
Copy link
Collaborator

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

@talevy
Copy link
Contributor Author

talevy commented Feb 19, 2020

run elasticsearch-ci/2

Copy link
Contributor

@iverase iverase left a comment

Choose a reason for hiding this comment

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

lgtm. Just left a comment but feel free to ignore it :)

@talevy
Copy link
Contributor Author

talevy commented Feb 19, 2020

test this please

@talevy
Copy link
Contributor Author

talevy commented Feb 19, 2020

@elasticmachine test this please

@talevy
Copy link
Contributor Author

talevy commented Feb 19, 2020

run elasticsearch-ci/2

@talevy
Copy link
Contributor Author

talevy commented Feb 20, 2020

run elasticsearch-ci/packaging-sample-matrix-unix

@talevy
Copy link
Contributor Author

talevy commented Feb 20, 2020

run elasticsearch-ci/1

@talevy talevy merged commit cc289f1 into elastic:geoshape-doc-values Feb 24, 2020
@talevy talevy deleted the gdv-fix-centroid branch February 24, 2020 17:32
talevy added a commit that referenced this pull request 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
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