Simple feature GML 3.2.1 output schema-invalid as geometries lack mandatory gml:id

Description

In GML 3.2.1, all geometry types are identifiable and have a mandatory attribute gml:id.

GeoServer simple feature GML 3.2.1 WFS responses (including the default output format for WFS 2.0.0) contain geometries that lack gml:id and are thus schema-invalid against the schema specified in the schemaLocation of the response.

gml:AbstractGeometryType <- gml:AbstractGMLType

See:
http://schemas.opengis.net/gml/3.2.1/gmlBase.xsd - http://schemas.opengis.net/gml/3.2.1/gmlBase.xsd
<attribute ref="gml:id" use="required"/>

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: jratike80 - Time: Wed, 4 Mar 2015 06:23:48 -0600
---------------------
<p>This returns geometries with gml:id</p>

<p><a href="http://localhost:8080/geoserver/wfs?SERVICE=WFS&amp;VERSION=2.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=topp:states" class="external-link" rel="nofollow">http://localhost:8080/geoserver/wfs?SERVICE=WFS&amp;VERSION=2.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=topp:states</a></p>

<p>Is this too simple test for this issue?</p>

codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: bencaradocdavies - Time: Wed, 4 Mar 2015 14:36:34 -0600
---------------------
<p>Jukka,</p>

<p>this request does not return geometries with gml:id. Looking at the first feature (which has gml:id="states.1"), schema validation fails because the elements gml:MultiSurface, gmlolygon, and gml:LinearRing each lack gml:id.

<a href="http://localhost:8080/geoserver/wfs?SERVICE=WFS&amp;VERSION=2.0.0&amp;REQUEST=GetFeature&amp;TYPENAMES=topp:states&amp;COUNT=1" class="external-link" rel="nofollow">http://localhost:8080/geoserver/wfs?SERVICE=WFS&amp;VERSION=2.0.0&amp;REQUEST=GetFeature&amp;TYPENAMES=topp:states&amp;COUNT=1</a></p>

<p>Kind regards,

Ben.</p>

Andrea Aime
November 23, 2017, 2:58 PM

Linked to associated GeoTools issues, since GeoServer uses the fast encoder only that one has been marked as blocker

Ben Caradoc-Davies
November 24, 2017, 1:44 AM

Fixed for simple features by in GEOT-5885. I manually tested that this works for topp:states GML 3.2 preview output.

Ben Caradoc-Davies
November 24, 2017, 1:45 AM

app-schema users are stuck with using ClientProperty until is fixed.

Assignee

Andrea Aime

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure