# Hole is not within polygon bug?

**URL:** https://discuss.elastic.co/t/hole-is-not-within-polygon-bug/21898
**Category:** Elasticsearch
**Created:** [January 29, 2015, 11:32am UTC](https://discuss.elastic.co/t/hole-is-not-within-polygon-bug/21898 "2015-01-29T11:32:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tuneladora](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@tuneladora](https://discuss.elastic.co/u/tuneladora)
#### Post date: [January 29, 2015, 11:32am UTC](https://discuss.elastic.co/t/hole-is-not-within-polygon-bug/21898/1 "2015-01-29T11:32:19Z")

</div>

Hi,

I was going to open a bug issue but I thought I'd double check here first.  
I've had some trouble importing to geo\_shapes in 1.4+

I get the exception:

> ElasticsearchParseException: Invaild shape: Hole is not within polygon

Now, I'm not an expert in GIS, but:

- The area looks like this: [http://i.imgur.com/oDzSeDQ.png](http://i.imgur.com/oDzSeDQ.png) with one  
point of the hole touching one vertex of the polygon
- The data is from postgis' _ST\_AsGeoJSON_ and according to _ST\_isValid_  
it's a valid area
- Every version of ES from 0.90 to 1.3 take the area just fine.

The problems happens after 1.4.0.

Here's the gist with all the data:

> <https://gist.github.com/bictorman/064a777499719ad66194>

Can someone confirm if I should open github issue?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/76d208a1-91e1-47a7-a17b-bc84bb5c719a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76d208a1-91e1-47a7-a17b-bc84bb5c719a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 12:35am UTC](https://discuss.elastic.co/t/hole-is-not-within-polygon-bug/21898/2 "2017-07-06T00:35:59Z")

</div>


