# Storage polygon is judged to be self-intersecting

**URL:** <https://discuss.elastic.co/t/storage-polygon-is-judged-to-be-self-intersecting/333555>\
**Category:** Elasticsearch\
**Created:** [May 16, 2023, 10:13am UTC](https://discuss.elastic.co/t/storage-polygon-is-judged-to-be-self-intersecting/333555 "2023-05-16T10:13:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baiwenbo1997](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baiwenbo1997/32/108492_2.png) [@baiwenbo1997](https://discuss.elastic.co/u/baiwenbo1997)\
**Post date:** [May 16, 2023, 10:13am UTC](https://discuss.elastic.co/t/storage-polygon-is-judged-to-be-self-intersecting/333555/1 "2023-05-16T10:13:58Z")

</div>

I want to know the tolerance or precision of self-intersecting graphics when storing.  
error: Polygon self-intersection at lat=22.773210573949637 lon=113.95022321162234  
Here is my figure：

```auto
[0]	113.950224078	22.773203746	
[1]	113.950223359	22.773209087	
[2]	113.950224122	22.773201358	
[3]	113.950343707	22.77321404	
[4]	113.950335419	22.773243776	
[5]	113.950222184	22.773235975	
[6]	113.950219586	22.773237128	
[7]	113.950222565	22.77321567	
[8]	113.950224078	22.773203746	
[9]	113.950220941	22.773233565	
[10]	113.950223213	22.77321056	
[11]	113.950222565	22.77321567	
[12]	113.950220941	22.773233565	

```

---

<div class="post-metadata">

**Author:** ![Ignacio\_Vera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ignacio_vera/32/36674_2.png) [@Ignacio\_Vera](https://discuss.elastic.co/u/Ignacio_Vera)\
**Post date:** [May 16, 2023, 10:45am UTC](https://discuss.elastic.co/t/storage-polygon-is-judged-to-be-self-intersecting/333555/2 "2023-05-16T10:45:27Z")

</div>

Hello,

Elastic search requires polygons to be valid following OGC standard, therefore no self-intersections are allowed. The reason for that is that we need to be able to break the polygon into triangles which is not possible in the case of self-intersections.

In your provided polygon, there are clear self-intersection in one edge:

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

---

<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:** [June 13, 2023, 10:45am UTC](https://discuss.elastic.co/t/storage-polygon-is-judged-to-be-self-intersecting/333555/3 "2023-06-13T10:45:37Z")

</div>

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