-
Notifications
You must be signed in to change notification settings - Fork 169
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
ShapesAsWKTModule does not deserialize WKT, returns null #175
Comments
@jdeolive this is curious. Note that the JSON written here has a string value of a point in WKT syntax! (multi-lingual format LOL). I'm not particularly familiar with GeoJSON but that looks like a bug in writing. I looked at the reading side in a debugger which led me to: org/locationtech/spatial4j/io/jackson/ShapeDeserializer.java:22 which calls a |
I guess you could call it valid JSON output but I would say it's definitely invalid GeoJSON. It's also missing a "type" property, required for valid GeoJSON output. |
So then our GeoJson writing has problems? |
@jdeolive I put the code here in a branch where you can easily run it. |
The ShapesAsWKTModule serializes Geometry objects just fine, but it cannot deserialize them. The object returned is null.
Here is a test to demonstrate the issue:
The text was updated successfully, but these errors were encountered: