You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have my IDE in front of me as I write this, but I can see you are not starting from a spatial context. Use JtsSpatialContext.GEO (declare as a variable/field as you wish, typically named "ctx"), and don't use/reference the factory of the spatial context unless you need to tweak the configuration to produce a different spatial context than typical. The idea is that the spatial context is the facade to everything else. From this, you can get a GeoJSONWriter & Reader without trying to use their constructors as you are doing now. If you are calling a constructor of anything other than possibly a SpatialContextFactory, then you're probably not using the APIs as intended. So once you have the context, then grab ctx.getFormats().getGeoJsonWriter (or Reader). Let me know how that works.
Hello,
I'm not sure if this is a bug or me not able to use the library ....
This is my code:
This is the console output:
The problem is the conversion back to geoJson. It is not working (type unknown). Do I miss something?
The text was updated successfully, but these errors were encountered: