[Geoserver-devel] [JIRA] (GEOS-7470) WFS service returns gml with 2D data even if srsDimension="3"

Stefan Eriksson created an issue

GeoServer / BugGEOS-7470

WFS service returns gml with 2D data even if srsDimension=“3”

Issue Type:

BugBug

Affects Versions:

2.9-beta, 2.8.2

Assignee:

Unassigned

Attachments:

generated_gml.zip, Regions.zip

Components:

WFS

Created:

19/Mar/16 10:44 PM

Environment:

Windows

Priority:

MediumMedium

Reporter:

Stefan Eriksson

Use the attached shape file and add a layer with that
Generate a GML file for the layer with WFS GML 3.1 or 3.2.

The resulting GML specifies srsDimension=“3”, but the coordinates are only x and y.

...
<cheshire:the_geom>
<gml:MultiSurface srsName="http://www.opengis.net/gml/srs/epsg.xml#27700" srsDimension="3">
<gml:surfaceMember>
<gml:Polygon>
<gml:exterior>
<gml:LinearRing>
<gml:posList>
353161.3992 344461.998 353060.1004 344222.1967 352801.997 343906.797 352629.9967 343719.7005 352306.3039 343429.7035 352086.0041 343316.396 352036.7976 ...

Tested on Windows, using installed version 2.8.2 and reproduced in forked development version 2016-03-19 on master.

It may be related to GEOT-4607, GEOT-1692.

If strict CITE is enabled for WFS service (GEOT-4152, GEOS-5131) then the srsDimension is not set at all and the application I use interprets the GML correctly.

Looking at the related issues, I come to think that this might actually a GeoTools bug.
I will have a look at the code now that I can debug it locally.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.2.0-OD-03-014#72000-sha1:1e7aa97)

Atlassian logo