On 15/11/16 10:37, mard123 wrote:
> I was able to have the numbering not present previously so I know it was
> possible. This is a requirement for me.

Why must you remove the gml:id? It is harmless and can be ignored. If 
you can explain your use-case, we might understand why you want to do this.

It is mandatory in GML 3.2.1 for all identifiable objects including 
features to have gml:id (GML 3.2.1 is the current GML version and the 
default output format for WFS 2.0.0). See below for an excerpt from the 
schema. Any GML 3.2.1 instance document that does not have gml:id on 
features is schema-invalid. Why would anyone want to configure GeoServer 
to intentionally produce schema-invalid WFS responses? While this 
behaviour might occur when GeoServer cannot determine a stable 
identifier, it does not conform to the standard. GeoServer will try to 
return the most standards-conformant response that it can.

Furthermore, the WFS specification requires that a WFS provide a stable 
unique (for that service) identifier for features. gml:id serves this 
purpose. Without such an identifier, how can a service implement the 
mandatory GetFeatureById stored query?

 From gmlBase.xsd (GML 3.2.1):

******

<element name="AbstractGML" type="gml:AbstractGMLType" abstract="true" 
substitutionGroup="gml:AbstractObject">
<annotation>
<documentation>The abstract element gml:AbstractGML is "any GML object 
having identity".   It acts as the head of an XML Schema substitution 
group, which may include any element which is a GML feature, or other 
object, with identity.  This is used as a variable in content models in 
GML core and application schemas.  It is effectively an abstract 
superclass for all GML objects.</documentation>
</annotation>
</element>
<complexType name="AbstractGMLType" abstract="true">
<sequence>
<group ref="gml:StandardObjectProperties"/>
</sequence>
<attribute ref="gml:id" use="required"/>
</complexType>

******

Kind regards,

-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to