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

quadtree_grid aggregation #24587

Closed
yavuzmester opened this issue May 10, 2017 · 8 comments
Closed

quadtree_grid aggregation #24587

yavuzmester opened this issue May 10, 2017 · 8 comments
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >enhancement

Comments

@yavuzmester
Copy link

We are drawing heatmaps with quadtrees. For each 256px tile, we dive 8 levels in the quadtree and find the pixel value that way.

In elasticsearch we can have a location field with the following mapping:

location: {
type: geo_shape,
tree: quadtree,
tree_levels: 25,
points_only: true
}

But there is only geohash_grid aggregation. What about quadtree_grid aggregation where in the response keys are paths like [0,2,1,3,0,1].

@clintongormley
Copy link
Contributor

@nknize any thoughts?

@jpountz
Copy link
Contributor

jpountz commented Aug 18, 2017

FixitFriday: removing the discuss label and assigning to Nick. This soulds like a useful feature but we need to validate whether we can execute such an aggregation efficiently.

@polyfractal polyfractal added :Analytics/Geo Indexing, search aggregations of geo points and shapes and removed :Analytics/Aggregations Aggregations labels Mar 20, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@thomasneirynck
Copy link
Contributor

Agreed this would be useful for heatmap drawing on the front-end, so +1 from me. Seems like a somewhat similar request to #16895 (comment)

@nyurik
Copy link
Contributor

nyurik commented Apr 29, 2018

I just submitted a pull request #30231 with plus code support - I think that PR can be used as a step towards multi-hashing support.

@talevy
Copy link
Contributor

talevy commented Mar 7, 2019

Hi @yavuzmester,

We have created a new geotile_grid aggregation that buckets using the quadkey tiling strategy: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-geotilegrid-aggregation.html.

Does this enable your use-case? You still only are returned a representation of the bucket, and need to use client-side logic to translate each bucket into a visual tile on a map.

@nyurik
Copy link
Contributor

nyurik commented Mar 7, 2019

@yavuzmester you might also be interested in #39810

@polyfractal
Copy link
Contributor

I'm going to close this, since I think the geotile_grid satisfies the requirement for now, with followup from #39810 as mentioned.

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 >enhancement
Projects
None yet
Development

No branches or pull requests

10 participants