Skip to content

Wrong coordinates order when mapping Point in SRID 4326 to GeoJSON #107

@thefat32

Description

@thefat32

When mapping a NTS Point with SRID 4326 to GeoJSON the coordinates remains in same order, but SRID 4326 is Lat/Long and GeoJSON is Long/Lat

Is there any config to the serializer to properly transform between GeoJSON and SRID 4326 ?

My Startup code is

        services.AddControllers().AddJsonOptions(options => {
               options.JsonSerializerOptions.Converters.Add(new GeoJsonConverterFactory());
           });

I'm using System.Text.Json implemetation

Metadata

Metadata

Assignees

No one assigned

    Labels

    STJApplies to NetTopologySuite.IO.GeoJSON4STJ

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions