# Как правильно сложить geo\_shape данные и отобразить их в kibana?

**URL:** https://discuss.elastic.co/t/geo-shape-kibana/148625
**Category:** Вопросы на русском языке
**Created:** [September 14, 2018, 1:15pm UTC](https://discuss.elastic.co/t/geo-shape-kibana/148625 "2018-09-14T13:15:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![111126](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111126/32/36818_2.png) [@111126](https://discuss.elastic.co/u/111126)
#### Post date: [September 14, 2018, 1:15pm UTC](https://discuss.elastic.co/t/geo-shape-kibana/148625/1 "2018-09-14T13:15:18Z")

</div>

Загрузил в elasticsearch шаблон:

> PUT \_template/farm-elevators\_contours  
> {  
> "index\_patterns": "farm-elevators\_contours-\*",  
> "settings": {  
> "number\_of\_shards": 1,  
> "number\_of\_replicas": 1,  
> "index.refresh\_interval" : "15s"  
> },  
> "mappings" : {  
> "_default_" : {  
> "properties" : {  
> "id": {"type":"integer"},  
> "ElevatorId": {"type":"integer"},  
> "id\_elevators\_contours": {"type":"integer"},  
> "elevator\_id\_all": {"type":"integer"},  
> "location\_elevators\_contours": {"type": "geo\_shape", "tree": "quadtree", "precision": "10m"}  
> }  
> }  
> }  
> }

Далее загрузил в индекс один документ:

> POST /farm-elevators\_contours-v1/doc  
> {  
> "ElevatorId" : "1",  
> "elevator\_id\_all" : "1",  
> "location\_elevators\_contours" : {  
> "type" : "polygon",  
> "coordinates" : [  
> [[54.7965415, 52.7846761], [54.7948134, 52.7839003], [54.7940585, 52.7900412], [54.7958084, 52.7908245], [54.7961167, 52.7881808], [54.795904, 52.7881808], [54.7960125, 52.7872996], [54.7962296, 52.7873373], [54.7965415, 52.7846761] ]  
> ]  
> }  
> }   
> В index pattren кибаны вижу следующее:
> 
> ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/9/292d334175522d38b8820c213dea441ff9c8b942.png)

В discovery кибаны вижу:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/3/03534d8ab89c4102bb34ea9c291fb523f3c184b6.png)

При этом ни на coordinate map ни на region maps отобразить данную область не получается.  
Вроде все по честному сделано, по правильному по документации.  
Подскажите пожалуйста в чем дело?  
Позволяет ли kibana отображать geo\_shape данные на карте?

---

<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: [October 12, 2018, 1:15pm UTC](https://discuss.elastic.co/t/geo-shape-kibana/148625/2 "2018-10-12T13:15:29Z")

</div>

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