I have the following feature:
{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [[
[77.500, 13.500],
[77.600, 13.500],
[77.600, 13.400],
[77.590, 13.400],
[77.590, 13.390],
[77.600, 13.390],
[77.600, 13.400],
[77.700, 13.400],
[77.700, 13.000],
[77.500, 13.000],
[77.500, 13.500]
]] } }
It should be valid and it has no intersection. However, I get the following error from ES:
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "failed to parse field [geometry] of type [geo_shape]"
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse field [geometry] of type [geo_shape]",
"caused_by": {
"type": "invalid_shape_exception",
"reason": "Self-intersection at or near point [77.6,13.4,0.0]"
}
}
There is a hole in the figure, but I have an example with a hole that is parsed by ES correctly:
{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [[
[77.500, 13.500],
[77.550, 13.500],
[77.530, 13.470],
[77.570, 13.470],
[77.550, 13.500],
[77.600, 13.500],
[77.600, 13.400],
[77.500, 13.400],
[77.500, 13.500]
]] } }
Could someone explain what is the issue with the first feature?