Opened 2 years ago

Closed 2 years ago

#2856 closed defect (fixed)

WFS GetFeature GeoJSON output does not transform to specified SRS

Reported by: jng Owned by: jng
Priority: medium Milestone: 4.0
Component: WFS Interface Version:
Severity: major Keywords:
Cc: External ID:

Description

Go to mapagent test page

Go to Wfs > GetFeature page

Change SRS name to EPSG:3857. Leave all other fields as-is

Submit: You should get GML re-projected to the specified SRS

Now change format to application/json

You get GeoJSON, but it is not re-projected to the specified SRS

Change History (1)

comment:1 by jng, 2 years ago

Resolution: fixed
Status: assignedclosed

In 10021:

When outputting GeoJSON from our mapagent, always try to write the "crs" property if the SRS of the feature source we're writing the GeoJSON from has an EPSG code representation

Also fix application/json mime type not being set for GeoJSON representations of WFS GetFeatures

Also make sure that the server implementation of MgFeatureService::GetWfsReader() applies coordsys transforms if one is constructed in the MgWfsQueryAdapter. This means that GeoJSON representations of WFS GetFeatures are properly transformed like the other supported formats.

Fixes #2809
Fixes #2857
Fixes #2856

Note: See TracTickets for help on using tickets.