-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializer ignores SRID #137
Comments
https://www.rfc-editor.org/rfc/rfc7946#section-4
Therefore, I don't see a standard place for us to look for a SRID in the data. You could try using a |
We are having same kind of issues with geojson and SRID/CRS:
But it seems both options are not possible in NTS with geojson because it only supports WGS84? Currently we are using the GeometryFactory.Create(28992) hard. So when geojson input is correctly set to this SRID everything works fine. |
Our SRID/CRS 28992 is only usable for the Netherlands. So currently my workarround is to check if feature(s) are located in the bbox of the Netherlands. |
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?
The text was updated successfully, but these errors were encountered: