Hello,
We recently upgraded from ES version 6 to 7.16.3. One of the shapes we have in our index worked fine in version 6 and is currently working fine in version 7 in the index we migrated over from 6, but when trying to recreate the index in version 7, it throws an "invalid_shape_exception" exception on one of the shapes.
This shape is a very narrow polygon wedge. It was the result of public land parcel data that was originally a linestring that ended up getting buffered into a polygon. It indexed fine in the last version of Elasticsearch and when I test the geojson in online viewers, it displays it just fine. See below for details on how to recreate.
Search Index Settings:
PUT http://ServerName:PortNumber/test_index?include_type_name=true
{
"settings": {
"index": {
"codec": "best_compression"
},
"number_of_shards": 10,
"number_of_replicas": 0,
"refresh_interval": -1
},
"mappings": {
"datasetitems": {
"properties": {
"geography": {
"type": "geo_shape",
"tree": "quadtree",
"precision": "50.0m"
}
}
}
}
}
Post that returns error:
POST http://ServerName:PortNumber/_bulk
{ "create": { "_index" : "test_index", "_type" : "datasetitems", "_id": 1 } }
{"geography":{"type":"Polygon","coordinates":[[[-107.88180702965093,37.289285907909985],[-107.88179936541891,37.289278246132682],[-107.88180701456989,37.289285918063491],[-107.88180702965093,37.289285907909985]]]}}
Error I receive:
"error": {
"type": "mapper_parsing_exception",
"reason": "failed to parse",
"caused_by": {
"type": "invalid_shape_exception",
"reason": "Cannot determine orientation: signed area equal to 0"
}
}