# Wkt not recognized as geo\_shape

**URL:** https://discuss.elastic.co/t/wkt-not-recognized-as-geo-shape/171215
**Category:** Kibana
**Tags:** elastic-stack-machine-learning
**Created:** [March 7, 2019, 1:02am UTC](https://discuss.elastic.co/t/wkt-not-recognized-as-geo-shape/171215 "2019-03-07T01:02:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![avocado](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@avocado](https://discuss.elastic.co/u/avocado)
#### Post date: [March 7, 2019, 1:02am UTC](https://discuss.elastic.co/t/wkt-not-recognized-as-geo-shape/171215/1 "2019-03-07T01:02:36Z")

</div>

If I import a file that contains properly formatted WKT polygons using the Machine Learning file upload utility WKT polygons are uploaded as plain text, even when using the Advanced tab and editing the mapping to explicitly specify 'geo\_shape'. Wondering if this is a bug or an issue with the ingest pipeline?

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [March 7, 2019, 3:16pm UTC](https://discuss.elastic.co/t/wkt-not-recognized-as-geo-shape/171215/2 "2019-03-07T15:16:01Z")

</div>

Hello,

The ML file uploader is still a relatively new feature. It doesn't appear they're accounting for the geo\_shape type yet in their file parsing logic. You can still upload geo data, but for now you might want to stick to the usual ingest routes (i.e.- Beats, logstash, http request, etc.).

You're certainly welcome to [request this feature](https://github.com/elastic/kibana/issues/new/choose) to put it on the team's radar. Also keep an eye on these two issues:

- [https://github.com/elastic/kibana/issues/32074](https://github.com/elastic/kibana/issues/32074)
- [https://github.com/elastic/kibana/issues/28765](https://github.com/elastic/kibana/issues/28765)

There's work in progress by the maps team for easier upload of geo data through the new maps app that might work well for you when it's released.

Regards,  
Aaron

---

<div class="post-metadata">

### Author: ![avocado](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@avocado](https://discuss.elastic.co/u/avocado)
#### Post date: [March 7, 2019, 3:58pm UTC](https://discuss.elastic.co/t/wkt-not-recognized-as-geo-shape/171215/3 "2019-03-07T15:58:50Z")

</div>

Thanks for the reply. This actually came up as I was testing 7.0 beta 1 release maps feature. I normally use the Python library for interfacing with the Elastic stack. Interestingly, because Types are now deprecated in 7.0 the Python Elasticsearch library is not compatible with 7.0, as all the helpers require a Document Type to be specified in the function calls. Another thing to update I guess

---

<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: [April 4, 2019, 3:58pm UTC](https://discuss.elastic.co/t/wkt-not-recognized-as-geo-shape/171215/4 "2019-04-04T15:58:55Z")

</div>

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