-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
The GeoJsonModule deserialize creates an invalid GeoJsonMultiPolygon #4586
Comments
Thank you for reporting. It would be great if you have the time to help us work on this issue by providing a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem. |
Ok, I will create today |
created a project with the failed test case: https://github.com/boundaries-io/spring-data-mongodb-4586 |
thank you for the reproducer, any chance to reduce the amount of json data to reproduce the issue? Something that does not necessarily hold hundreds of points but rather a minimal amount to show what's wrong. |
Hi, The original geoJson is valid and comforms to the GeoJson Spec.( you can test via geojsonlint, or the JTS library, etc.) I've added another unit test that uses a working Geojson serializer/deserializer from A Working GeoJson Serializer library |
The GeoJson deseralizer creates an invalid GeoJsonMultiPolygon that contain holes.
For example, while using a valid GeoJson MultiPolygon: Dallas, Texas GeoJson
invoking the method
The JSON is incorrect, the 'holes' that make up the original Multipolygon are being created incorrectly.
Invalid Dallas, Texas GeoJson
-Jeryl Cook
The text was updated successfully, but these errors were encountered: