NetTopologySuite.IO.GeoJSON icon indicating copy to clipboard operation
NetTopologySuite.IO.GeoJSON copied to clipboard

Use `PrecisionModel` for serializing/deserializing coordinates (STJ)

Open MizardX opened this issue 1 year ago • 1 comments

  • Serialization and deserialization of the Envelope type moved to it's own converter, so that it easily can use a PrecisionModel parameter.
  • Extension methods for Utf8JsonWriter and Utf8JsonReader that uses a PrecisionModel parameter.
  • Serialization and deserialization of coordinates uses the extension methods with the current PrecisionModel.
  • Fixes #135

I am not sure if PrecisionModel should be used for the Z coordinate. This is something I want, but this is not supported by the Newtonsoft GeoJSON serializer.

MizardX avatar Oct 29 '23 00:10 MizardX

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 29 '23 00:10 CLAassistant