Skip to content

Conversation

@MizardX
Copy link

@MizardX MizardX commented Oct 29, 2023

  • 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 Serializer ignores the PrecisionModel of geometries (STJ) #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.

@CLAassistant
Copy link

CLAassistant commented Oct 29, 2023

CLA assistant check
All committers have signed the CLA.

@MizardX MizardX changed the title Number precision Use PrecisionModel for serializing/deserializing coordinates (STJ) Oct 29, 2023
@MizardX MizardX force-pushed the number-precision branch from 101b813 to 07f5ae9 Compare June 25, 2024 18:36
@kragoth
Copy link

kragoth commented May 7, 2025

Is there any chance we could get this resolved? I have to resort to NewtonsoftJson for every project just because the precision model is ignored by STJ serialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serializer ignores the PrecisionModel of geometries (STJ)

3 participants