Skip to content

Conversation

@nyurik
Copy link
Contributor

@nyurik nyurik commented Apr 29, 2018

This PR has been superseded by #37842

This PR is based on #30320, which adds support for multiple hashing algorithms. This PR add support for the map aggregation based on a very common "tile" pattern - given a zoom level, hashes are computed in the same way as tile indexes (zoom/x/y).

Allows precision 0..29 - corresponding with the traditional map zoom levels. The key is returned as "key": "10/768/512" -- same format as most tile services - zoom/x/y. To test manually, use grid doc example, and add "type":"quadkey".

TODO

  • tests

cc: @colings86

@nyurik nyurik added the :Analytics/Geo Indexing, search aggregations of geo points and shapes label Apr 30, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@nyurik nyurik force-pushed the maptilegrid branch 2 times, most recently from a7cb33c to 2c99c16 Compare May 2, 2018 04:09
@nyurik nyurik changed the title Implement maptile geo grid hashing Implement quadkey geo grid aggregation May 2, 2018
@nyurik nyurik force-pushed the maptilegrid branch 10 times, most recently from 3ce407a to b169939 Compare May 5, 2018 03:24
nyurik added 5 commits June 7, 2018 12:13
This patch should not introduce any changes in the existing
ES behavior. Its only goal is to allow subsequent addition
of various hashing algorithms, such as quadkey, pluscode, hex, ...
nyurik added a commit that referenced this pull request Feb 1, 2019
Implements `geotile_grid` aggregation

This patch refactors previous implementation #30240

This code uses the same base classes as `geohash_grid` agg, but uses a different hashing
algorithm to allow zoom consistency.  Each grid bucket is aligned to Web Mercator tiles.
@nyurik
Copy link
Contributor Author

nyurik commented Feb 1, 2019

Done in #37842

@nyurik nyurik closed this Feb 1, 2019
@nyurik nyurik deleted the maptilegrid branch February 1, 2019 01:27
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 >feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants