Skip to content

Serializer ignores SRID #137

Description

@Simonkampendahl

it doesn't matter what SRID is specified, when its deserialized it's always set to 4326.

if i specify SRID with for example:
var t = new NetTopologySuite.Geometries.GeometryFactory().WithSRID(3006); options.SerializerSettings.Converters.Add(new NetTopologySuite.IO.Converters.GeometryConverter());

Then its always setting SRID to 3006.

but i need the user to be able to send in geojson of any SRID, so i can't hardcode a specific SRID, it needs to be read from the input.

Is this not possible?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions