Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Jun 7, 2021

The refactor in #71696 introduced a bug where computing the centroid of a shape is done on the original shape. Therefore for shapes that crosses the dateline, the computation of the centroid might be wrong.

This PR reverts that part of the logic again so the centroid is computed on the processed shape.

fixes #73836

@iverase iverase added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.0.0 v7.14.0 labels Jun 7, 2021
@iverase iverase requested a review from imotov June 7, 2021 15:39
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 7, 2021
@elasticmachine
Copy link
Collaborator

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

@iverase
Copy link
Contributor Author

iverase commented Jun 7, 2021

@elasticmachine update branch

@iverase iverase requested review from romseygeek and removed request for imotov June 7, 2021 16:39
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM

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) v7.14.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] GeoShapeScriptDocValuesIT testRandomShape failing

4 participants