NetTopologySuite / NetTopologySuite.IO.GeoJSON

GeoJSON IO module for NTS.
BSD 3-Clause "New" or "Revised" License
111 stars 46 forks source link

Ignore unknown properties #85

Closed jamiewinder closed 2 years ago

jamiewinder commented 3 years ago

Hi. I'm using this library (the STJ version) with an API which unfortunate includes a non-standard property within the GeoJSON root element. This seems to throw the converter off and I get an error of

The converter 'NetTopologySuite.IO.Converters.StjGeometryConverter' read too much or not enough.

Is it possible to get the converter to ignore these properties, or a workaround?

Here's an example of what the non-standard property (type_string) looks like:

{"type": "LineString", "type_string": "LineString", coordinates: []}
DGuidi commented 2 years ago

same issue as #94, that was fixed by #95