# ES 5.0 Polygon indexing problems

**URL:** <https://discuss.elastic.co/t/es-5-0-polygon-indexing-problems/67121>\
**Category:** Elasticsearch\
**Created:** [November 24, 2016, 2:34pm UTC](https://discuss.elastic.co/t/es-5-0-polygon-indexing-problems/67121 "2016-11-24T14:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Alexandre](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@Alex\_Alexandre](https://discuss.elastic.co/u/Alex_Alexandre)\
**Post date:** [November 24, 2016, 2:34pm UTC](https://discuss.elastic.co/t/es-5-0-polygon-indexing-problems/67121/1 "2016-11-24T14:34:48Z")

</div>

Hi,  
I have a little poblem with the "Points of LinearRing do not form a closed linestring" error. My polygon is correctly closed.  
Here is the polygon :

> {  
> "elasticsearch\_maj" : "2016-11-24 15:14:16",  
> "geopolygon" : {  
> "type" : "polygon",  
> "coordinates" : [https://codepen.io/Gattou/pen/XNgREX](https://codepen.io/Gattou/pen/XNgREX)  
> }  
> }

The polygon is in the HTML section of codepen because its above 5000 chars.

I tried my polygon in [http://geojsonlint.com/](http://geojsonlint.com/) and it works fine, but i cannot index it.

> {  
> "type": "Polygon",  
> "coordinates": [https://codepen.io/Gattou/pen/XNgREX](https://codepen.io/Gattou/pen/XNgREX)  
> }

Is there a limit to the polygon size or a limit to the number of points ? It looks like the polygon is not totally parsed and throws the error.

Thanks Alex

---

<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:** [December 22, 2016, 2:34pm UTC](https://discuss.elastic.co/t/es-5-0-polygon-indexing-problems/67121/2 "2016-12-22T14:34:48Z")

</div>

Closed on December 22, 2016, 2:34pm UTC

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