Documentation for fieldgml

Complex Type: BagType

[Table of contents]

Super-types: AbstractGMLType < BagType (by extension)
Sub-types: None
Name BagType
Abstract no
Documentation A non-abstract generic collection type that can be used as a document element for a collection of any GML types - Geometries, Topologies, Features ... FeatureCollections may only contain Features. GeometryCollections may only contain Geometrys. Bags are less constrained they must contain objects that are substitutable for gml:_Object. This may mix several levels, including Features, Definitions, Dictionaries, Geometries etc. The content model would ideally be member 0..* members 0..1 member 0..* for maximum flexibility in building a collection from both homogeneous and distinct components: included "member" elements each contain a single Object an included "members" element contains a set of Objects However, this is non-deterministic, thus prohibited by XSD.
XML Instance Representation
<...
gml:id="[0..1]">
<gml:description> ... </gml:description> [0..1]
<gml:name> ... </gml:name> [0..*]

'Multiple names may be provided. These will often be distinguished by being assigned by different authorities, as indicated by the value of the codeSpace attribute. In an instance document there will usually only be one name per authority.'

<gml:member> ... </gml:member> [0..*]
<gml:members> ... </gml:members> [0..1]
</...>
Diagram
Schema Component Representation
<complexType name="BagType">
<complexContent>
<extension base=" gml:AbstractGMLType ">
<sequence>
<element ref=" gml:member " minOccurs="0" maxOccurs="unbounded"/>
<element ref=" gml:members " minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>