-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 Triangle and Hex Grid Encoding for GeoGridAggregator #16895
Comments
Is a solution for this still desired? |
Would this include also quad_keys, similar to Bing Maps (https://msdn.microsoft.com/en-us/library/bb259689.aspx)? The tile-pyramids employed by most mapping services (Web Mercator, 2x2 division) are easier to work with from a front-end perspective than geohash-grids due to the uniform scaling horizontal/vertical across zoom levels. So something like https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html, but bucketing by tile in the quad-tree. |
FWIW I got a user asking for this to me in person recently, the main motivation being to have equally-sized cells. |
Relates #28121 - S2's cells are approximately rectangular and of approximately equal sizes. |
It would definitely be a good idea to support hexagonal partitioning. Explanations with examples here: https://eng.uber.com/h3/ |
Update here:
Recently, changes were made to make geogrid aggregations really easy to create. This was done in favor of building one mega-geo-grid aggregation with different types due to concerns over overloading of the geotile_grid was introduced for support for web-xyz-tiling of geopoints. |
From a discussion, there is a geohex.net and a related |
Hexagonal geo aggregation (Uber H3) support in ES would be a great feature, equal area buckets help with data visualization UX. Is it on roadmap? |
For those who are interested, I've created an Ingest Processor plugin for generating H3 indexes at specified resolutions out of geo-location fields. The repo is available here: https://github.com/consulthys/elasticsearch-ingest-h3 |
@consulthys Looks promising, would you mind to include an example how to use it for search bucket aggregation? Similar to https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html |
@zakjan All my plugin does is to create the H3 indexes out of a I'm mainly using Kepler (https://kepler.gl/) for visualizing H3 indexes for now. |
Nice @nyurik !! |
Thanks for the link! The site looks really nice. One of the primary reasons I did it is to see what it would look like on low zooms - how much of a tile warp would happen if someone attempted to analyze planet-scale data. |
Completed GeoGridAggregation on H3 hex grid - we'll open a new issue if we want to support a new grid. |
A triangular tessellation based
geo_point
encoding supports aggregating on grids other than basic geohash (e.g., triangular, hex). These aggregations provide better spatial visualization but are also commonly used in GIS analysis applications due to their equal area characteristics. This feature issue adds agrid_type
parameter toGeoHashGridParams
(which will likely need to be refactored toGeoGridParams
) to allow users to specify different grid types such asgeohash
,triangular
,hexagonal
. We should also investigate generalizinggeohash_grid
aggregation to a more generalgeo_grid
aggregation so we can provide different grid definitions.The text was updated successfully, but these errors were encountered: