-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
status: feedback-providedFeedback has been providedFeedback has been providedstatus: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged
Description
The GeoJson deseralizer creates an invalid GeoJsonMultiPolygon that contain holes.
For example, while using a valid GeoJson MultiPolygon: Dallas, Texas GeoJson
invoking the method
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(GeoJsonModule.serializers());
mapper.registerModule(GeoJsonModule.deserializers());
String dallas = FileUtils.readFileToString(new File("src/test/resources/raw_dallas.geojson"));
GeoJsonMultiPolygon geoJsonMultiPolygon = mapper.readValue(dallas, GeoJsonMultiPolygon.class);
String json = getObjectMapper().writeValueAsString(geoJsonMultiPolygon);
Assert.assertEquals(dallas,json);//fails
The JSON is incorrect, the 'holes' that make up the original Multipolygon are being created incorrectly.
Invalid Dallas, Texas GeoJson
-Jeryl Cook
Metadata
Metadata
Assignees
Labels
status: feedback-providedFeedback has been providedFeedback has been providedstatus: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged