-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect 'duplicate consecutive coordinates' error on geo_shape index #17407
Comments
I also see the above problem in Elastic 2.3.1 |
Any news on this ticket? I also see a related bug on this data:
Error is:
On elastic 2.3.2 |
Thanks for the issue @smithsimonj The second parse exception is not a bug. If you look close at the shape there is a self intersection at I'll dig deeper into the Antarctica parse exception. At quick glance there are a handful of coordinates at |
This is a tricky one, but the provided outline of Antarctica is technically not valid GeoJSON because it is oriented clockwise whereas https://tools.ietf.org/html/rfc7946#section-3.1.6 says:
It's tricky because ES silently accepts incorrectly-oriented polygons that cross ≤180° of longitude, which is most countries, but Antarctica crosses every line of longitude so this leniency doesn't work any more. Unfortunately, the resulting error message isn't helpful in determining that this was the problem. The fix is either to correct the orientation of the data to follow the spec, or to alter the mapping to include I'm going to close this issue and take up the question of how to improve the error message over on #27832. |
Description of the problem including expected versus actual behavior:
On Elasticsearch 2.2.1, when loading some geojson shapes into a field indexed with:
Throws the following error:
I believe the geojson is valid and should load fine.
Steps to reproduce:
This is a reprise of #14014 but with more details included. I agree with the analysis in that ticket by @danni that this is a artefact of the shape being simplified before being indexed - the 'duplicate consecutive coordinates' being referred to in the error quite simply don't appear even once in the original data.
The text was updated successfully, but these errors were encountered: