# Doubts Visualization MULTIPOLYGONS kibana

**URL:** https://discuss.elastic.co/t/doubts-visualization-multipolygons-kibana/168548
**Category:** Kibana
**Created:** [February 15, 2019, 8:40am UTC](https://discuss.elastic.co/t/doubts-visualization-multipolygons-kibana/168548 "2019-02-15T08:40:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sergio\_Redondo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergio_redondo/32/40969_2.png) [@Sergio\_Redondo](https://discuss.elastic.co/u/Sergio_Redondo)
#### Post date: [February 15, 2019, 8:40am UTC](https://discuss.elastic.co/t/doubts-visualization-multipolygons-kibana/168548/1 "2019-02-15T08:40:47Z")

</div>

Hello, I'm new here, I've been using elasticsearch for a month and I wanted to solve some doubts, despite reading the documentation and searching I do not get what I'm looking for.  
I am trying to index information in JSON-LD format and what I want is to visualize the geographic data but these are multipolygons and polygons, I am seeing the form with geo\_shape but it gives me an error in the mapping. Yesterday I made some examples with geo\_point for the cases in which they are points and I visualize them correctly. If someone could help me out I would appreciate it very much.  
These are the examples that i'm trying:

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 1 example correct \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
PUT /museums  
{  
"mappings": {  
"\_doc": {  
"properties": {  
"location": {  
"type": "geo\_point"  
}  
}  
}  
}  
}

POST /museums/\_doc/\_bulk?refresh  
{"index":{"\_id":1}}  
{"location": "52.374081,4.912350", "name": "NEMO Science Museum"}  
{"index":{"\_id":2}}  
{"location": "52.369219,4.901618", "name": "Museum Het Rembrandthuis"}  
{"index":{"\_id":3}}  
{"location": "52.371667,4.914722", "name": "Nederlands Scheepvaartmuseum"}  
{"index":{"\_id":4}}  
{"location": "51.222900,4.405200", "name": "Letterenhuis"}  
{"index":{"\_id":5}}  
{"location": "48.861111,2.336389", "name": "Musée du Louvre"}  
{"index":{"\_id":6}}  
{"location": "48.860000,2.327000", "name": "Musée d'Orsay"}

POST /museums/\_search?size=0  
{  
"aggregations" : {  
"large-grid" : {  
"geohash\_grid" : {  
"field" : "location",  
"precision" : 3  
}  
}  
}  
}

* * *

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 2 example NO correct \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

PUT /museums\_2  
{  
"mappings": {  
"\_doc": {  
"properties": {  
"location": {  
"type": "geo\_shape"  
}  
}  
}  
}  
}

DELETE /museums\_2  
GET museums\_2/\_mapping

POST /museums\_2/\_doc/\_bulk?refresh  
{"index":{"\_id":1}}  
{"location":{"type":"linestring","coordinates":[[-77.03653,38.897676],[-77.009051,38.889939]]}}  
POST /museums\_2/\_search?size=0  
{  
"aggregations" : {  
"large-grid" : {  
"geohash\_grid" : {  
"field" : "location",  
"precision" : 3  
}  
}  
}  
}

I would like to be able to visualize linestring as the first example and then move on to multipolygonos and know how.

Thank you!

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [February 15, 2019, 1:44pm UTC](https://discuss.elastic.co/t/doubts-visualization-multipolygons-kibana/168548/2 "2019-02-15T13:44:28Z")

</div>

There are 2 problems in your `2 example`

1. `DELETE /museums_2` removes the mapping created above. When you perform the insert after deleting the mapping, then location will not be indexed as a geo\_shape
2. `geohash_grid` aggregation does not currently support geo\_shape type. Follow [https://github.com/elastic/elasticsearch/issues/21293](https://github.com/elastic/elasticsearch/issues/21293) to monitor the status of allowing geo\_shape support with geohash\_grid aggregation.

The existing map visualizations in Kibana do not support the display of geo\_shape documents.

Elastic is building a new Maps application that will render geo\_point and geo\_shape features. It will be coming in 6.7 and 7.0 releases. The 7.0.0 Beta 1 release is now available for download if you would like to try out the new Maps application - [https://www.elastic.co/blog/kibana-7-0-0-beta1-released](https://www.elastic.co/blog/kibana-7-0-0-beta1-released)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 15, 2019, 1:44pm UTC](https://discuss.elastic.co/t/doubts-visualization-multipolygons-kibana/168548/3 "2019-03-15T13:44:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
