Dear all,
I'm tring to save the following geometry
MULTIPOLYGON(((177.59 59.9735,180 62.288856810085,180 63.763900213475,178.731 64.0348,177.44 64.2967,176.148 64.5406,174.809 64.7792,173.45 65.005,172.047 65.2202,170.64 65.421,169.219 65.6075,167.797 65.7863,166.333 65.9439,164.861 66.0891,163.335 66.224,161.828 66.3404,160.292 66.4432,158.765 66.5298,157.216 66.6019,155.649 66.6591,154.109 66.6932,153.59 62.9316,154.943 62.8917,156.287 62.8324,157.653 62.7588,158.98 62.6742,160.302 62.5769,161.624 62.4665,162.95 62.3415,164.25 62.2062,165.537 62.0617,166.792 61.8975,168.06 61.7262,169.302 61.5448,170.554 61.3497,171.768 61.1458,172.97 60.9305,174.138 60.71,175.307 60.4739,176.454 60.2312,177.59 59.9735)),((-180 62.288856810085,-178.761 63.4792,-180 63.7639,-180 63.763900213475,-180 62.288856810085)))
into a geo_shape using ElasticSearch 7.11.1, but I have the following error:
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse field [footprint] of type [geo_shape]"}],"type":"mapper_parsing_exception","reason":"failed to parse field [footprint] of type [geo_shape]","caused_by":{"type":"illegal_argument_exception","reason":"Unable to Tessellate shape [[62.288856810085, -180.0] [63.7639, -180.0] [63.763900213475, -180.0] [62.288856810085, -180.0] ]. Possible malformed shape detected."}},"status":400}
Here the Java StackTrace:
Caused by: org.elasticsearch.ElasticsearchException: Elasticsearch exception [type=illegal_argument_exception, reason=Unable to Tessellate shape [[62.288856810085, -180.0] [63.7639, -180.0] [63.763900213475, -180.0] [62.288856810085, -180.0] ]. Possible malformed shape detected.]
at org.elasticsearch.ElasticsearchException.innerFromXContent(ElasticsearchException.java:485) ~[elasticsearch-7.11.1.jar:7.11.1]
at org.elasticsearch.ElasticsearchException.fromXContent(ElasticsearchException.java:396) ~[elasticsearch-7.11.1.jar:7.11.1]
at org.elasticsearch.ElasticsearchException.innerFromXContent(ElasticsearchException.java:426) ~[elasticsearch-7.11.1.jar:7.11.1]
at org.elasticsearch.ElasticsearchException.failureFromXContent(ElasticsearchException.java:592) ~[elasticsearch-7.11.1.jar:7.11.1]
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:168) ~[elasticsearch-7.11.1.jar:7.11.1]
... 32 more
Is it a bug? Is there a workaround?
I'm looking forward to reading your reply
Regards