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

[Maps] Geo_shape aggregation support #2576

Closed
pierrecdn opened this issue Jan 8, 2015 · 31 comments · Fixed by #67886
Closed

[Maps] Geo_shape aggregation support #2576

pierrecdn opened this issue Jan 8, 2015 · 31 comments · Fixed by #67886
Assignees
Labels

Comments

@pierrecdn
Copy link

Hi,
First of all, thanks, Kibana 4 is really powerful.

I expected to make tile maps work with this kind of schema :

{
    "region" : {
        "properties" : { 
            "name" : {"type" : "string", "store" : true },
            "code" : {"type" : "integer", "store" : true },
            "population" : {"type" : "integer", "store" : true },
            "shape" : { "type" : "geo_shape", "precision" : "1km" }
        }
    }
}

From the "Discover" view, no major problems :

search

But it's impossible to get the shape field from the "Visualize/Tile Map" view :

visualization

Does these type of geo coordinates are not supported yet in kibana ?

@rashidkpc
Copy link
Contributor

There is currently no support for geo_shape aggregations in elasticsearch. Should elasticsearch support geo_shape in some form for aggregation purposes we could look into implementing it.

@pierrecdn
Copy link
Author

OK, after some research I found that it is related to elastic/elasticsearch#7574.
Many thanks Rashid

@rashidkpc rashidkpc changed the title Does Tile Map supports geo_shape ? Geo_shape aggregation support Jan 12, 2015
@dev-rke
Copy link

dev-rke commented Nov 12, 2015

I also would like to see this feature realized.
I need to visualize relations between coordinates and it would be great to use a linestring or multilinestring. As far as i understood the elasticsearch docs, there is already support for geo_shape aggregations in elasticsearch, so only kibana needs to support a visualization for geo_shape data type.

@carlosvega
Copy link

+1

2 similar comments
@snario
Copy link

snario commented Feb 23, 2016

+1

@lababidi
Copy link

lababidi commented Mar 1, 2016

+1

@jljorgenson18
Copy link

+1

Would this just be an aggregate of just polygon/linestring geo_points or would you be able to visualize areas as well? I image in some future version we could have heat maps for polygons.

@alexshires
Copy link

+1

11 similar comments
@omarps
Copy link

omarps commented May 17, 2016

+1

@sumit-gupta-sgt
Copy link

+1

@michimau
Copy link

+1

@yeroc
Copy link

yeroc commented Jul 18, 2016

+1

@epama
Copy link

epama commented Jul 19, 2016

+1

@chadblair
Copy link

+1

@ghost
Copy link

ghost commented Aug 13, 2016

+1

@tomei-yo
Copy link

+1

@emmanuelmathot
Copy link

+1

@aparnavarma92
Copy link

+1

@peterneubauer
Copy link

+1

@tbragin tbragin added Feature:Coordinate Map Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Nov 1, 2016
@joelstewart
Copy link

joelstewart commented Mar 9, 2017

would be great to have aggregates of doc counts that have geo_shape within / intersect buckets that are realized by a query to another index holding the shape, something like:

{
   "aggs" : {
         "docs_in_shape" :{
               "geo_shape" : {
                    "relation": "within",
                    "field" : "geometry",  (aggregated field)
                    "indexed_shapes" : {
                        "query: { } //query to return shapes to use as buckets
                        "field":  "geometry", //field to get shape
                        "bucket_name" : "statename"

one could also provide inline geometries instead of "indexed_shapes"

@aravindiiitb
Copy link

+1

@alexfrancoeur alexfrancoeur added the [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label Feb 6, 2018
@fogfish
Copy link

fogfish commented Feb 12, 2018

+1

1 similar comment
@MathieuB1
Copy link

+1

@timroes timroes removed the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Apr 11, 2018
@thomasneirynck
Copy link
Contributor

We are working on a new implementation of map visualizations and are not planning to add any new features to the existing implementation. We will take this suggestion under consideration for the new app.

@pierrecdn
Copy link
Author

@thomasneirynck thanks for the update.

I've too admit that I was a bit naive 3 years ago thinking that this was almost doable :). A ton of hard work has been done in between.

Thanks for that, I hope to be able to use this new impl. soon !

@thomasneirynck
Copy link
Contributor

Documents with geo_shape fields can now be visualized in the Maps app

https://www.elastic.co/guide/en/kibana/current/maps.html

@pierrecdn
Copy link
Author

And that's awesome.
Thanks for this long but very well executed journey.

@glegal
Copy link

glegal commented Jul 22, 2019

So does the geo_shape aggregation is now supported? will it be available in the next release of ELK?

@nreese
Copy link
Contributor

nreese commented Jul 22, 2019

So does the geo_shape aggregation is now supported

You can visualize geo_shape fields in the Maps application but there is still no geo_shape aggregation support.

Geo_shape aggregation support in Elasticsearch is an active work in progress. You can follow development on this branch https://github.com/elastic/elasticsearch/tree/geoshape-doc-values. Once elasticsearch has geo_shape aggregation support, maps application support will quickly follow.

I will re-open this issue until the Maps application supports geo_shape aggregations

@nreese nreese reopened this Jul 22, 2019
@thomasneirynck thomasneirynck changed the title Geo_shape aggregation support [Maps] Geo_shape aggregation support May 19, 2020
@thomasneirynck
Copy link
Contributor

Adding this to Maps will enable clustering/grid/heatmap layers for index-patterns with a geo_shape field. geo_shape-aggs support on the ES-side is licensed for Gold+ users, which means cluster/grids/heatmap layers for geo_shape-fields will also be only available for Gold+ users of Kibana Maps.

See also #56876": Kibana will need to nest the view-bounds under the geo_shape-aggregation for improved performance.

@pierrecdn
Copy link
Author

I'd really love if some of you, elasticians, write a blogpost to quantify the ton of work achieved here and expose what it now unlocks for the maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.