1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
|
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" elementFormDefault="qualified" version="2.1.2">
<annotation>
<appinfo>geometry.xsd v2.1.2 2002-07</appinfo>
<documentation xml:lang="en">
GML Geometry schema. Copyright (c) 2001,2002 OGC, All Rights Reserved.
</documentation>
</annotation>
<!-- bring in the XLink attributes -->
<import namespace="http://www.w3.org/1999/xlink" schemaLocation="../../xlink/1.0.0/xlinks.xsd"/>
<!-- ==============================================================
global declarations
=================================================================== -->
<element name="_Geometry" type="gml:AbstractGeometryType" abstract="true"/>
<element name="_GeometryCollection" type="gml:GeometryCollectionType" abstract="true" substitutionGroup="gml:_Geometry"/>
<element name="geometryMember" type="gml:GeometryAssociationType"/>
<element name="pointMember" type="gml:PointMemberType" substitutionGroup="gml:geometryMember"/>
<element name="lineStringMember" type="gml:LineStringMemberType" substitutionGroup="gml:geometryMember"/>
<element name="polygonMember" type="gml:PolygonMemberType" substitutionGroup="gml:geometryMember"/>
<element name="outerBoundaryIs" type="gml:LinearRingMemberType"/>
<element name="innerBoundaryIs" type="gml:LinearRingMemberType"/>
<!-- primitive geometry elements -->
<element name="Point" type="gml:PointType" substitutionGroup="gml:_Geometry"/>
<element name="LineString" type="gml:LineStringType" substitutionGroup="gml:_Geometry"/>
<element name="LinearRing" type="gml:LinearRingType" substitutionGroup="gml:_Geometry"/>
<element name="Polygon" type="gml:PolygonType" substitutionGroup="gml:_Geometry"/>
<element name="Box" type="gml:BoxType"/>
<!-- aggregate geometry elements -->
<element name="MultiGeometry" type="gml:GeometryCollectionType" substitutionGroup="gml:_Geometry"/>
<element name="MultiPoint" type="gml:MultiPointType" substitutionGroup="gml:_Geometry"/>
<element name="MultiLineString" type="gml:MultiLineStringType" substitutionGroup="gml:_Geometry"/>
<element name="MultiPolygon" type="gml:MultiPolygonType" substitutionGroup="gml:_Geometry"/>
<!-- coordinate elements -->
<element name="coord" type="gml:CoordType"/>
<element name="coordinates" type="gml:CoordinatesType"/>
<!-- this attribute gives the location where an element is defined -->
<attribute name="remoteSchema" type="anyURI"/>
<!-- ==============================================================
abstract supertypes
=================================================================== -->
<complexType name="AbstractGeometryType" abstract="true">
<annotation>
<documentation>
All geometry elements are derived from this abstract supertype;
a geometry element may have an identifying attribute (gid).
It may be associated with a spatial reference system.
</documentation>
</annotation>
<complexContent>
<restriction base="anyType">
<attribute name="gid" type="ID" use="optional"/>
<attribute name="srsName" type="anyURI" use="optional"/>
</restriction>
</complexContent>
</complexType>
<complexType name="AbstractGeometryCollectionBaseType" abstract="true">
<annotation>
<documentation>
This abstract base type for geometry collections just makes the
srsName attribute mandatory.
</documentation>
</annotation>
<complexContent>
<restriction base="gml:AbstractGeometryType">
<attribute name="gid" type="ID" use="optional"/>
<attribute name="srsName" type="anyURI" use="required"/>
</restriction>
</complexContent>
</complexType>
<attributeGroup name="AssociationAttributeGroup">
<annotation>
<documentation>
These attributes can be attached to any element, thus allowing it
to act as a pointer. The 'remoteSchema' attribute allows an element
that carries link attributes to indicate that the element is declared
in a remote schema rather than by the schema that constrains the
current document instance.
</documentation>
</annotation>
<attributeGroup ref="xlink:simpleLink"/>
<attribute ref="gml:remoteSchema" use="optional"/>
</attributeGroup>
<complexType name="GeometryAssociationType">
<annotation>
<documentation>
An instance of this type (e.g. a geometryMember) can either
enclose or point to a primitive geometry element. When serving
as a simple link that references a remote geometry instance,
the value of the gml:remoteSchema attribute can be used to
locate a schema fragment that constrains the target instance.
</documentation>
</annotation>
<sequence minOccurs="0">
<element ref="gml:_Geometry"/>
</sequence>
<attributeGroup ref="xlink:simpleLink"/>
<attribute ref="gml:remoteSchema" use="optional"/>
<!-- <attributeGroup ref="gml:AssociationAttributeGroup"/> -->
</complexType>
<complexType name="PointMemberType">
<annotation>
<documentation>Restricts the geometry member to being a Point instance.</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryAssociationType">
<sequence minOccurs="0">
<element ref="gml:Point"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</restriction>
</complexContent>
</complexType>
<complexType name="LineStringMemberType">
<annotation>
<documentation>Restricts the geometry member to being a LineString instance.</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryAssociationType">
<sequence minOccurs="0">
<element ref="gml:LineString"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</restriction>
</complexContent>
</complexType>
<complexType name="PolygonMemberType">
<annotation>
<documentation>Restricts the geometry member to being a Polygon instance.</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryAssociationType">
<sequence minOccurs="0">
<element ref="gml:Polygon"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</restriction>
</complexContent>
</complexType>
<complexType name="LinearRingMemberType">
<annotation>
<documentation>Restricts the outer or inner boundary of a polygon instance
to being a LinearRing.</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryAssociationType">
<sequence minOccurs="0">
<element ref="gml:LinearRing"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</restriction>
</complexContent>
</complexType>
<!-- ==============================================================
primitive geometry types
=================================================================== -->
<complexType name="PointType">
<annotation>
<documentation>
A Point is defined by a single coordinate tuple.
</documentation>
</annotation>
<complexContent>
<extension base="gml:AbstractGeometryType">
<sequence>
<choice>
<element ref="gml:coord"/>
<element ref="gml:coordinates"/>
</choice>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="LineStringType">
<annotation>
<documentation>
A LineString is defined by two or more coordinate tuples, with
linear interpolation between them.
</documentation>
</annotation>
<complexContent>
<extension base="gml:AbstractGeometryType">
<sequence>
<choice>
<element ref="gml:coord" minOccurs="2" maxOccurs="unbounded"/>
<element ref="gml:coordinates"/>
</choice>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="LinearRingType">
<annotation>
<documentation>
A LinearRing is defined by four or more coordinate tuples, with
linear interpolation between them; the first and last coordinates
must be coincident.
</documentation>
</annotation>
<complexContent>
<extension base="gml:AbstractGeometryType">
<sequence>
<choice>
<element ref="gml:coord" minOccurs="4" maxOccurs="unbounded"/>
<element ref="gml:coordinates"/>
</choice>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="BoxType">
<annotation>
<documentation>
The Box structure defines an extent using a pair of coordinate tuples.
</documentation>
</annotation>
<complexContent>
<extension base="gml:AbstractGeometryType">
<sequence>
<choice>
<element ref="gml:coord" minOccurs="2" maxOccurs="2"/>
<element ref="gml:coordinates"/>
</choice>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="PolygonType">
<annotation>
<documentation>
A Polygon is defined by an outer boundary and zero or more inner
boundaries which are in turn defined by LinearRings.
</documentation>
</annotation>
<complexContent>
<extension base="gml:AbstractGeometryType">
<sequence>
<element ref="gml:outerBoundaryIs"/>
<element ref="gml:innerBoundaryIs" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!-- ==============================================================
aggregate geometry types
=================================================================== -->
<complexType name="GeometryCollectionType">
<annotation>
<documentation>
A geometry collection must include one or more geometries, referenced
through geometryMember elements. User-defined geometry collections
that accept GML geometry classes as members must instantiate--or
derive from--this type.
</documentation>
</annotation>
<complexContent>
<extension base="gml:AbstractGeometryCollectionBaseType">
<sequence maxOccurs="unbounded">
<element ref="gml:geometryMember"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="MultiPointType">
<annotation>
<documentation>
A MultiPoint is defined by one or more Points, referenced through
pointMember elements.
</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryCollectionType">
<sequence maxOccurs="unbounded">
<element ref="gml:pointMember"/>
</sequence>
<attribute name="gid" type="ID" use="optional"/>
<attribute name="srsName" type="anyURI" use="required"/>
</restriction>
</complexContent>
</complexType>
<complexType name="MultiLineStringType">
<annotation>
<documentation>
A MultiLineString is defined by one or more LineStrings, referenced
through lineStringMember elements.
</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryCollectionType">
<sequence maxOccurs="unbounded">
<element ref="gml:lineStringMember"/>
</sequence>
<attribute name="gid" type="ID" use="optional"/>
<attribute name="srsName" type="anyURI" use="required"/>
</restriction>
</complexContent>
</complexType>
<complexType name="MultiPolygonType">
<annotation>
<documentation>
A MultiPolygon is defined by one or more Polygons, referenced through
polygonMember elements.
</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryCollectionType">
<sequence maxOccurs="unbounded">
<element ref="gml:polygonMember"/>
</sequence>
<attribute name="gid" type="ID" use="optional"/>
<attribute name="srsName" type="anyURI" use="required"/>
</restriction>
</complexContent>
</complexType>
<!-- ==============================================================
There are two ways to represent coordinates: (1) as a sequence
of <coord> elements that encapsulate tuples, or (2) using a
single <coordinates> string.
=================================================================== -->
<complexType name="CoordType">
<annotation>
<documentation>
Represents a coordinate tuple in one, two, or three dimensions.
</documentation>
</annotation>
<sequence>
<element name="X" type="decimal"/>
<element name="Y" type="decimal" minOccurs="0"/>
<element name="Z" type="decimal" minOccurs="0"/>
</sequence>
</complexType>
<complexType name="CoordinatesType">
<annotation>
<documentation>
Coordinates can be included in a single string, but there is no
facility for validating string content. The value of the 'cs' attribute
is the separator for coordinate values, and the value of the 'ts'
attribute gives the tuple separator (a single space by default); the
default values may be changed to reflect local usage.
</documentation>
</annotation>
<simpleContent>
<extension base="string">
<attribute name="decimal" type="string" use="optional" default="."/>
<attribute name="cs" type="string" use="optional" default=","/>
<attribute name="ts" type="string" use="optional" default=" "/>
</extension>
</simpleContent>
</complexType>
</schema>
|