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

Add util method to build a Geometry from an H3 cell #92883

Merged
merged 2 commits into from
Jan 16, 2023

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jan 12, 2023

There are a few places where we need to build a Geometry from an H3 cell, therefore lets add a method on H3cartesianUtil that does that. This allows to make sure we build valid geometries that can be indexed. Therefore in this Pr we are

  • Reversing the points for the south pole as we are creating the points with the wrong orientation.
  • we are making sure we are splitting properly polygons across the dateline (bug in the GeometryNormalizer).

@iverase iverase added >non-issue :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.7.0 labels Jan 12, 2023
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jan 12, 2023
Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

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

Generally I liked this, but did have a few questions.

@iverase iverase merged commit c17521e into elastic:main Jan 16, 2023
@iverase iverase deleted the h3ToGeometry branch January 16, 2023 14:08
nreese added a commit to elastic/kibana that referenced this pull request Feb 9, 2023
…api_integration/apis/maps/get_grid_tile.js (#150768)

Fixes #149068

Order of the vertices changed as side effect of
elastic/elasticsearch#92883. PR updates expects
clause for new order
kibanamachine pushed a commit to elastic/kibana that referenced this pull request Feb 9, 2023
…api_integration/apis/maps/get_grid_tile.js (#150768)

Fixes #149068

Order of the vertices changed as side effect of
elastic/elasticsearch#92883. PR updates expects
clause for new order

(cherry picked from commit d6a4ebf)
kibanamachine added a commit to elastic/kibana that referenced this pull request Feb 9, 2023
…/test/api_integration/apis/maps/get_grid_tile.js (#150768) (#150794)

# Backport

This will backport the following commits from `main` to `8.7`:
- [fixes Failing ES Promotion: X-Pack API Integration Tests
x-pack/test/api_integration/apis/maps/get_grid_tile.js
(#150768)](#150768)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2023-02-09T21:35:28Z","message":"fixes
Failing ES Promotion: X-Pack API Integration Tests
x-pack/test/api_integration/apis/maps/get_grid_tile.js
(#150768)\n\nFixes
https://github.com/elastic/kibana/issues/149068\r\n\r\nOrder of the
vertices changed as side effect
of\r\nhttps://github.com/elastic/elasticsearch/pull/92883. PR updates
expects\r\nclause for new
order","sha":"d6a4ebf46d9af18618cfed16666921b58db1e400","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","auto-backport","Feature:Maps","v8.7.0","v8.8.0"],"number":150768,"url":"https://github.com/elastic/kibana/pull/150768","mergeCommit":{"message":"fixes
Failing ES Promotion: X-Pack API Integration Tests
x-pack/test/api_integration/apis/maps/get_grid_tile.js
(#150768)\n\nFixes
https://github.com/elastic/kibana/issues/149068\r\n\r\nOrder of the
vertices changed as side effect
of\r\nhttps://github.com/elastic/elasticsearch/pull/92883. PR updates
expects\r\nclause for new
order","sha":"d6a4ebf46d9af18618cfed16666921b58db1e400"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150768","number":150768,"mergeCommit":{"message":"fixes
Failing ES Promotion: X-Pack API Integration Tests
x-pack/test/api_integration/apis/maps/get_grid_tile.js
(#150768)\n\nFixes
https://github.com/elastic/kibana/issues/149068\r\n\r\nOrder of the
vertices changed as side effect
of\r\nhttps://github.com/elastic/elasticsearch/pull/92883. PR updates
expects\r\nclause for new
order","sha":"d6a4ebf46d9af18618cfed16666921b58db1e400"}}]}] BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
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 >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants