1 |
9238
|
tao
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<schema targetNamespace="http://www.opengis.net/gml/3.2" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.2.1.2">
|
3 |
|
|
<annotation>
|
4 |
|
|
<appinfo source="urn:x-ogc:specification:gml:schema-xsd:gmlBase:3.2.1">gmlBase.xsd</appinfo>
|
5 |
|
|
<documentation>See ISO/DIS 19136 7.2.
|
6 |
|
|
The gmlBase schema components establish the GML model and syntax, in particular
|
7 |
|
|
- a root XML type from which XML types for all GML objects should be derived,
|
8 |
|
|
- a pattern and components for GML properties,
|
9 |
|
|
- patterns for collections and arrays, and components for generic collections and arrays,
|
10 |
|
|
- components for associating metadata with GML objects,
|
11 |
|
|
- components for constructing definitions and dictionaries.
|
12 |
|
|
|
13 |
|
|
GML is an OGC Standard.
|
14 |
|
|
Copyright (c) 2007,2010 Open Geospatial Consortium.
|
15 |
|
|
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
|
16 |
|
|
</documentation>
|
17 |
|
|
</annotation>
|
18 |
|
|
<include schemaLocation="gml.xsd"/>
|
19 |
|
|
<include schemaLocation="basicTypes.xsd"/>
|
20 |
|
|
<import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.w3.org/1999/xlink.xsd"/>
|
21 |
|
|
<element name="AbstractObject" abstract="true">
|
22 |
|
|
<annotation>
|
23 |
|
|
<documentation>This element has no type defined, and is therefore implicitly (according to the rules of W3C XML Schema) an XML Schema anyType. It is used as the head of an XML Schema substitution group which unifies complex content and certain simple content elements used for datatypes in GML, including the gml:AbstractGML substitution group.</documentation>
|
24 |
|
|
</annotation>
|
25 |
|
|
</element>
|
26 |
|
|
<element name="AbstractGML" type="gml:AbstractGMLType" abstract="true" substitutionGroup="gml:AbstractObject">
|
27 |
|
|
<annotation>
|
28 |
|
|
<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>
|
29 |
|
|
</annotation>
|
30 |
|
|
</element>
|
31 |
|
|
<complexType name="AbstractGMLType" abstract="true">
|
32 |
|
|
<sequence>
|
33 |
|
|
<group ref="gml:StandardObjectProperties"/>
|
34 |
|
|
</sequence>
|
35 |
|
|
<attribute ref="gml:id" use="required"/>
|
36 |
|
|
</complexType>
|
37 |
|
|
<group name="StandardObjectProperties">
|
38 |
|
|
<sequence>
|
39 |
|
|
<element ref="gml:metaDataProperty" minOccurs="0" maxOccurs="unbounded"/>
|
40 |
|
|
<element ref="gml:description" minOccurs="0"/>
|
41 |
|
|
<element ref="gml:descriptionReference" minOccurs="0"/>
|
42 |
|
|
<element ref="gml:identifier" minOccurs="0"/>
|
43 |
|
|
<element ref="gml:name" minOccurs="0" maxOccurs="unbounded"/>
|
44 |
|
|
</sequence>
|
45 |
|
|
</group>
|
46 |
|
|
<attributeGroup name="AssociationAttributeGroup">
|
47 |
|
|
<annotation>
|
48 |
|
|
<documentation>XLink components are the standard method to support hypertext referencing in XML. An XML Schema attribute group, gml:AssociationAttributeGroup, is provided to support the use of Xlinks as the method for indicating the value of a property by reference in a uniform manner in GML.</documentation>
|
49 |
|
|
</annotation>
|
50 |
|
|
<attributeGroup ref="xlink:simpleAttrs"/>
|
51 |
|
|
<attribute name="nilReason" type="gml:NilReasonType"/>
|
52 |
|
|
<attribute ref="gml:remoteSchema">
|
53 |
|
|
<annotation>
|
54 |
|
|
<appinfo>deprecated</appinfo>
|
55 |
|
|
</annotation>
|
56 |
|
|
</attribute>
|
57 |
|
|
</attributeGroup>
|
58 |
|
|
<element name="abstractAssociationRole" type="gml:AssociationRoleType" abstract="true">
|
59 |
|
|
<annotation>
|
60 |
|
|
<documentation>Applying this pattern shall restrict the multiplicity of objects in a property element using this content model to exactly one. An instance of this type shall contain an element representing an object, or serve as a pointer to a remote object.
|
61 |
|
|
Applying the pattern to define an application schema specific property type allows to restrict
|
62 |
|
|
- the inline object to specified object types,
|
63 |
|
|
- the encoding to "by-reference only" (see 7.2.3.7),
|
64 |
|
|
- the encoding to "inline only" (see 7.2.3.8).</documentation>
|
65 |
|
|
</annotation>
|
66 |
|
|
</element>
|
67 |
|
|
<complexType name="AssociationRoleType">
|
68 |
|
|
<sequence minOccurs="0">
|
69 |
|
|
<any namespace="##any"/>
|
70 |
|
|
</sequence>
|
71 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
72 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
73 |
|
|
</complexType>
|
74 |
|
|
<attributeGroup name="OwnershipAttributeGroup">
|
75 |
|
|
<annotation>
|
76 |
|
|
<documentation>Encoding a GML property inline vs. by-reference shall not imply anything about the "ownership" of the contained or referenced GML Object, i.e. the encoding style shall not imply any "deep-copy" or "deep-delete" semantics. To express ownership over the contained or referenced GML Object, the gml:OwnershipAttributeGroup attribute group may be added to object-valued property elements. If the attribute group is not part of the content model of such a property element, then the value may not be "owned".
|
77 |
|
|
When the value of the owns attribute is "true", the existence of inline or referenced object(s) depends upon the existence of the parent object.</documentation>
|
78 |
|
|
</annotation>
|
79 |
|
|
<attribute name="owns" type="boolean" default="false"/>
|
80 |
|
|
</attributeGroup>
|
81 |
|
|
<element name="abstractStrictAssociationRole" type="gml:AssociationRoleType" abstract="true">
|
82 |
|
|
<annotation>
|
83 |
|
|
<documentation>This element shows how an element
|
84 |
|
|
declaration may include a Schematron constraint to limit the property to act
|
85 |
|
|
in either inline or by-reference mode, but not both.</documentation>
|
86 |
|
|
</annotation>
|
87 |
|
|
</element>
|
88 |
|
|
<element name="abstractReference" type="gml:ReferenceType" abstract="true">
|
89 |
|
|
<annotation>
|
90 |
|
|
<documentation>gml:abstractReference may be used as the head of a subtitution group of more specific elements providing a value by-reference.</documentation>
|
91 |
|
|
</annotation>
|
92 |
|
|
</element>
|
93 |
|
|
<complexType name="ReferenceType">
|
94 |
|
|
<annotation>
|
95 |
|
|
<documentation>gml:ReferenceType is intended to be used in application schemas directly, if a property element shall use a "by-reference only" encoding.</documentation>
|
96 |
|
|
</annotation>
|
97 |
|
|
<sequence/>
|
98 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
99 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
100 |
|
|
</complexType>
|
101 |
|
|
<element name="abstractInlineProperty" type="gml:InlinePropertyType" abstract="true">
|
102 |
|
|
<annotation>
|
103 |
|
|
<documentation>gml:abstractInlineProperty may be used as the head of a subtitution group of more specific elements providing a value inline.</documentation>
|
104 |
|
|
</annotation>
|
105 |
|
|
</element>
|
106 |
|
|
<complexType name="InlinePropertyType">
|
107 |
|
|
<sequence>
|
108 |
|
|
<any namespace="##any"/>
|
109 |
|
|
</sequence>
|
110 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
111 |
|
|
</complexType>
|
112 |
|
|
<element name="reversePropertyName" type="string">
|
113 |
|
|
<annotation>
|
114 |
|
|
<documentation>If the value of an object property is another object and that object contains also a property for the association between the two objects, then this name of the reverse property may be encoded in a gml:reversePropertyName element in an appinfo annotation of the property element to document the constraint between the two properties. The value of the element shall contain the qualified name of the property element.</documentation>
|
115 |
|
|
</annotation>
|
116 |
|
|
</element>
|
117 |
|
|
<element name="description" type="gml:StringOrRefType">
|
118 |
|
|
<annotation>
|
119 |
|
|
<documentation>The value of this property is a text description of the object. gml:description uses gml:StringOrRefType as its content model, so it may contain a simple text string content, or carry a reference to an external description. The use of gml:description to reference an external description has been deprecated and replaced by the gml:descriptionReference property.</documentation>
|
120 |
|
|
</annotation>
|
121 |
|
|
</element>
|
122 |
|
|
<element name="descriptionReference" type="gml:ReferenceType">
|
123 |
|
|
<annotation>
|
124 |
|
|
<documentation>The value of this property is a remote text description of the object. The xlink:href attribute of the gml:descriptionReference property references the external description.</documentation>
|
125 |
|
|
</annotation>
|
126 |
|
|
</element>
|
127 |
|
|
<element name="name" type="gml:CodeType">
|
128 |
|
|
<annotation>
|
129 |
|
|
<documentation>The gml:name property provides a label or identifier for the object, commonly a descriptive name. An object may have several names, typically assigned by different authorities. gml:name uses the gml:CodeType content model. The authority for a name is indicated by the value of its (optional) codeSpace attribute. The name may or may not be unique, as determined by the rules of the organization responsible for the codeSpace. In common usage there will be one name per authority, so a processing application may select the name from its preferred codeSpace.</documentation>
|
130 |
|
|
</annotation>
|
131 |
|
|
</element>
|
132 |
|
|
<element name="identifier" type="gml:CodeWithAuthorityType">
|
133 |
|
|
<annotation>
|
134 |
|
|
<documentation>Often, a special identifier is assigned to an object by the maintaining authority with the intention that it is used in references to the object For such cases, the codeSpace shall be provided. That identifier is usually unique either globally or within an application domain. gml:identifier is a pre-defined property for such identifiers.</documentation>
|
135 |
|
|
</annotation>
|
136 |
|
|
</element>
|
137 |
|
|
<attribute name="id" type="ID">
|
138 |
|
|
<annotation>
|
139 |
|
|
<documentation>The attribute gml:id supports provision of a handle for the XML element representing a GML Object. Its use is mandatory for all GML objects. It is of XML type ID, so is constrained to be unique in the XML document within which it occurs.</documentation>
|
140 |
|
|
</annotation>
|
141 |
|
|
</attribute>
|
142 |
|
|
<complexType name="AbstractMemberType" abstract="true">
|
143 |
|
|
<annotation>
|
144 |
|
|
<documentation>To create a collection of GML Objects that are not all features, a property type shall be derived by extension from gml:AbstractMemberType.
|
145 |
|
|
This abstract property type is intended to be used only in object types where software shall be able to identify that an instance of such an object type is to be interpreted as a collection of objects.
|
146 |
|
|
By default, this abstract property type does not imply any ownership of the objects in the collection. The owns attribute of gml:OwnershipAttributeGroup may be used on a property element instance to assert ownership of an object in the collection. A collection shall not own an object already owned by another object.
|
147 |
|
|
</documentation>
|
148 |
|
|
</annotation>
|
149 |
|
|
<sequence/>
|
150 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
151 |
|
|
</complexType>
|
152 |
|
|
<attributeGroup name="AggregationAttributeGroup">
|
153 |
|
|
<annotation>
|
154 |
|
|
<documentation>A GML Object Collection is any GML Object with a property element in its content model whose content model is derived by extension from gml:AbstractMemberType.
|
155 |
|
|
In addition, the complex type describing the content model of the GML Object Collection may also include a reference to the attribute group gml:AggregationAttributeGroup to provide additional information about the semantics of the object collection. This information may be used by applications to group GML objects, and optionally to order and index them.
|
156 |
|
|
The allowed values for the aggregationType attribute are defined by gml:AggregationType. See 8.4 of ISO/IEC 11404:1996 for the meaning of the values in the enumeration.</documentation>
|
157 |
|
|
</annotation>
|
158 |
|
|
<attribute name="aggregationType" type="gml:AggregationType"/>
|
159 |
|
|
</attributeGroup>
|
160 |
|
|
<simpleType name="AggregationType" final="#all">
|
161 |
|
|
<restriction base="string">
|
162 |
|
|
<enumeration value="set"/>
|
163 |
|
|
<enumeration value="bag"/>
|
164 |
|
|
<enumeration value="sequence"/>
|
165 |
|
|
<enumeration value="array"/>
|
166 |
|
|
<enumeration value="record"/>
|
167 |
|
|
<enumeration value="table"/>
|
168 |
|
|
</restriction>
|
169 |
|
|
</simpleType>
|
170 |
|
|
<complexType name="AbstractMetadataPropertyType" abstract="true">
|
171 |
|
|
<annotation>
|
172 |
|
|
<documentation>To associate metadata described by any XML Schema with a GML object, a property element shall be defined whose content model is derived by extension from gml:AbstractMetadataPropertyType.
|
173 |
|
|
The value of such a property shall be metadata. The content model of such a property type, i.e. the metadata application schema shall be specified by the GML Application Schema.
|
174 |
|
|
By default, this abstract property type does not imply any ownership of the metadata. The owns attribute of gml:OwnershipAttributeGroup may be used on a metadata property element instance to assert ownership of the metadata.
|
175 |
|
|
If metadata following the conceptual model of ISO 19115 is to be encoded in a GML document, the corresponding Implementation Specification specified in ISO/TS 19139 shall be used to encode the metadata information.
|
176 |
|
|
</documentation>
|
177 |
|
|
</annotation>
|
178 |
|
|
<sequence/>
|
179 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
180 |
|
|
</complexType>
|
181 |
|
|
<element name="targetElement" type="string"/>
|
182 |
|
|
<element name="associationName" type="string"/>
|
183 |
|
|
<element name="defaultCodeSpace" type="anyURI"/>
|
184 |
|
|
<element name="gmlProfileSchema" type="anyURI"/>
|
185 |
|
|
</schema>
|