[Geoserver-devel] [JIRA] (GEOS-11039) WFS Axis Order with JSON output

Dieter Stüken created an issue

GeoServer / BugGEOS-11039

WFS Axis Order with JSON output

Issue Type:

BugBug

Affects Versions:

2.22.3

Assignee:

Unassigned

Components:

WFS

Created:

21/Jun/23 4:58 PM

Priority:

MediumMedium

Reporter:

Dieter Stüken

I observed an unexpected axis order for a WFS getFeature request when using outputFormat=application/json. The CRS is shown as urn:ogc:def:crs:EPSG::4326.

After reading about Axis ordering, I noticed the axis order shall be different for version=1.0.0 and version=2.0.0. I traced it down to: jsonWriter.setAxisOrder() which is called with different (and correct) AxisOrder. This is even respected on GeoJSONBuilder.writeCoordinate(x,y).

Unfortunately the coordinates are already swapped at this point and the given AxisOrder gets canceled again.

So I guess this is a bug.

With XML the output is fine.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100227-sha1:28a616e)

Atlassian logo