|
I have a GeoJSON file that includes a crs block. When reading that file there is a NullPointerException.
This same file does render on http://geojsonlint.com/
I have attached the problematic GeoJSON file and the error is listed below:
Exception in thread "main" java.lang.NullPointerException at org.geotools.geojson.geom.GeometryCollectionHandler.endObject(GeometryCollectionHandler.java:63) at org.geotools.geojson.DelegatingHandler.endObject(DelegatingHandler.java:81) at org.json.simple.parser.JSONParser.parse(Unknown Source) at org.json.simple.parser.JSONParser.parse(Unknown Source) at org.geotools.geojson.GeoJSONUtil.parse(GeoJSONUtil.java:236) at org.geotools.geojson.geom.GeometryJSON.parse(GeometryJSON.java:651) at org.geotools.geojson.geom.GeometryJSON.read(GeometryJSON.java:192)
Thanks,
James
|