| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
/****************************************************************************** |
| 4 |
* Project: GDAL/OGR |
| 5 |
* Purpose: XML Schema for OGR VRT files. |
| 6 |
* Author: Even Rouault, <even dot rouault at spatialys.com> |
| 7 |
* |
| 8 |
********************************************************************** |
| 9 |
* Copyright (c) 2012, Even Rouault |
| 10 |
* |
| 11 |
* SPDX-License-Identifier: MIT |
| 12 |
****************************************************************************/ |
| 13 |
--> |
| 14 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.0"> |
| 15 |
<xs:element name="OGRVRTDataSource"> |
| 16 |
<xs:complexType> |
| 17 |
<xs:sequence> |
| 18 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 19 |
<xs:element name="Metadata" type="MetadataType"/> <!-- may be repeated --> |
| 20 |
<xs:element name="OGRVRTLayer" type="OGRVRTLayerType"/> |
| 21 |
<xs:element name="OGRVRTWarpedLayer" type="OGRVRTWarpedLayerType"/> |
| 22 |
<xs:element name="OGRVRTUnionLayer" type="OGRVRTUnionLayerType"/> |
| 23 |
</xs:choice> |
| 24 |
</xs:sequence> |
| 25 |
</xs:complexType> |
| 26 |
</xs:element> |
| 27 |
|
| 28 |
<xs:complexType name="MetadataType"> |
| 29 |
<xs:sequence> |
| 30 |
<!--<xs:choice>--> |
| 31 |
<!--<xs:element name="MDI" type="MDIType" minOccurs="0" maxOccurs="unbounded"/>--> |
| 32 |
<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/> |
| 33 |
<!--</xs:choice>--> |
| 34 |
</xs:sequence> |
| 35 |
<xs:attribute name="domain" type="xs:string"/> |
| 36 |
<xs:attribute name="format" type="xs:string"/> |
| 37 |
</xs:complexType> |
| 38 |
|
| 39 |
<xs:complexType name="OGRVRTLayerType"> |
| 40 |
<xs:sequence> |
| 41 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 42 |
<xs:element name="Metadata" type="MetadataType"/> <!-- may be repeated --> |
| 43 |
<xs:element name="SrcDataSource" type="SrcDataSourceType"> |
| 44 |
<xs:annotation> |
| 45 |
<xs:documentation>Required element</xs:documentation> |
| 46 |
</xs:annotation> |
| 47 |
</xs:element> |
| 48 |
<xs:element name="OpenOptions" type="OpenOptionsType"> |
| 49 |
<xs:annotation> |
| 50 |
<xs:documentation>Optional element</xs:documentation> |
| 51 |
</xs:annotation> |
| 52 |
</xs:element> |
| 53 |
<xs:element name="SrcLayer" type="nonEmptyStringType"> |
| 54 |
<xs:annotation> |
| 55 |
<xs:documentation>SrcLayer or(eclusive) SrcSQL are required elements</xs:documentation> |
| 56 |
</xs:annotation> |
| 57 |
</xs:element> |
| 58 |
<xs:element name="SrcSQL"> |
| 59 |
<xs:complexType> |
| 60 |
<xs:simpleContent> |
| 61 |
<xs:extension base="nonEmptyStringType"> |
| 62 |
<xs:attribute name="dialect" type="nonEmptyStringType"/> |
| 63 |
</xs:extension> |
| 64 |
</xs:simpleContent> |
| 65 |
</xs:complexType> |
| 66 |
</xs:element> |
| 67 |
<xs:element name="FID" type="FIDType"/> |
| 68 |
<xs:element name="Style" type="nonEmptyStringType"/> |
| 69 |
<xs:element name="GeometryType" type="GeometryTypeType"> |
| 70 |
<xs:annotation> |
| 71 |
<xs:documentation>Use GeometryField.GeometryType for multi-geometry field support.</xs:documentation> |
| 72 |
</xs:annotation> |
| 73 |
</xs:element> |
| 74 |
<xs:element name="LayerSRS" type="nonEmptyStringType"> |
| 75 |
<xs:annotation> |
| 76 |
<xs:documentation>Use GeometryField.SRS for multi-geometry field support.</xs:documentation> |
| 77 |
</xs:annotation> |
| 78 |
</xs:element> |
| 79 |
<xs:element name="Field" type="FieldType"> |
| 80 |
<xs:annotation> |
| 81 |
<xs:documentation>May be repeated</xs:documentation> |
| 82 |
</xs:annotation> |
| 83 |
</xs:element> |
| 84 |
<xs:element name="GeometryField" type="GeometryFieldType"> |
| 85 |
<xs:annotation> |
| 86 |
<xs:documentation>May be repeated</xs:documentation> |
| 87 |
</xs:annotation> |
| 88 |
</xs:element> |
| 89 |
<xs:element name="SrcRegion" type="SrcRegionType"> |
| 90 |
<xs:annotation> |
| 91 |
<xs:documentation>Use GeometryField.SrcRegion for multi-geometry field support.</xs:documentation> |
| 92 |
</xs:annotation> |
| 93 |
</xs:element> |
| 94 |
<xs:element name="attrFilterPassThrough" type="OGRBooleanType"> |
| 95 |
<xs:annotation> |
| 96 |
<xs:documentation>Default to FALSE.</xs:documentation> |
| 97 |
</xs:annotation> |
| 98 |
</xs:element> |
| 99 |
<xs:element name="FeatureCount" type="xs:integer"/> |
| 100 |
<xs:group ref="ExtentType"> |
| 101 |
<xs:annotation> |
| 102 |
<xs:documentation>Use GeometryField.ExtentXMin, etc... for multi-geometry field support.</xs:documentation> |
| 103 |
</xs:annotation> |
| 104 |
</xs:group> |
| 105 |
</xs:choice> |
| 106 |
</xs:sequence> |
| 107 |
<xs:attribute name="name" type="nonEmptyStringType" use="required"/> |
| 108 |
</xs:complexType> |
| 109 |
|
| 110 |
<xs:complexType name="OpenOptionsType"> |
| 111 |
<xs:sequence> |
| 112 |
<xs:element name="OOI" type="OOIType" minOccurs="0" maxOccurs="unbounded"/> |
| 113 |
</xs:sequence> |
| 114 |
</xs:complexType> |
| 115 |
|
| 116 |
<xs:complexType name="OOIType"> |
| 117 |
<xs:simpleContent> |
| 118 |
<xs:extension base="nonEmptyStringType"> |
| 119 |
<xs:attribute name="key" type="xs:string"/> |
| 120 |
</xs:extension> |
| 121 |
</xs:simpleContent> |
| 122 |
</xs:complexType> |
| 123 |
|
| 124 |
<xs:complexType name="FIDType"> |
| 125 |
<xs:simpleContent> |
| 126 |
<xs:extension base="xs:string"> |
| 127 |
<xs:attribute name="name" type="xs:string"> |
| 128 |
<xs:annotation> |
| 129 |
<xs:documentation>User-facing name of the FID column.</xs:documentation> |
| 130 |
</xs:annotation> |
| 131 |
</xs:attribute> |
| 132 |
</xs:extension> |
| 133 |
</xs:simpleContent> |
| 134 |
</xs:complexType> |
| 135 |
|
| 136 |
<xs:group name="ExtentType"> |
| 137 |
<xs:sequence> |
| 138 |
<xs:element name="ExtentXMin" type="xs:double" minOccurs="1" maxOccurs="1"/> |
| 139 |
<xs:element name="ExtentYMin" type="xs:double" minOccurs="1" maxOccurs="1"/> |
| 140 |
<xs:element name="ExtentXMax" type="xs:double" minOccurs="1" maxOccurs="1"/> |
| 141 |
<xs:element name="ExtentYMax" type="xs:double" minOccurs="1" maxOccurs="1"/> |
| 142 |
</xs:sequence> |
| 143 |
</xs:group> |
| 144 |
|
| 145 |
<xs:complexType name="SrcDataSourceType"> |
| 146 |
<xs:simpleContent> |
| 147 |
<xs:extension base="nonEmptyStringType"> |
| 148 |
<xs:attribute name="relativeToVRT" type="OGRBooleanType" default="FALSE"> |
| 149 |
<xs:annotation> |
| 150 |
<xs:documentation>Default to FALSE.</xs:documentation> |
| 151 |
</xs:annotation> |
| 152 |
</xs:attribute> |
| 153 |
<!-- alternate case --> |
| 154 |
<xs:attribute name="relativetoVRT" type="OGRBooleanType" default="FALSE"> |
| 155 |
<xs:annotation> |
| 156 |
<xs:documentation>Default to FALSE.</xs:documentation> |
| 157 |
</xs:annotation> |
| 158 |
</xs:attribute> |
| 159 |
<xs:attribute name="shared" type="OGRBooleanType"/> |
| 160 |
</xs:extension> |
| 161 |
</xs:simpleContent> |
| 162 |
</xs:complexType> |
| 163 |
|
| 164 |
<xs:simpleType name="nonEmptyStringType"> |
| 165 |
<xs:restriction base="xs:string"> |
| 166 |
<xs:minLength value="1"/> |
| 167 |
</xs:restriction> |
| 168 |
</xs:simpleType> |
| 169 |
|
| 170 |
<xs:simpleType name="GeometryTypeType"> |
| 171 |
<xs:restriction base="xs:string"> |
| 172 |
<xs:enumeration value="wkbNone"/> |
| 173 |
<xs:enumeration value="wkbUnknown"/> |
| 174 |
<xs:enumeration value="wkbPoint"/> |
| 175 |
<xs:enumeration value="wkbLineString"/> |
| 176 |
<xs:enumeration value="wkbPolygon"/> |
| 177 |
<xs:enumeration value="wkbMultiPoint"/> |
| 178 |
<xs:enumeration value="wkbMultiLineString"/> |
| 179 |
<xs:enumeration value="wkbMultiPolygon"/> |
| 180 |
<xs:enumeration value="wkbGeometryCollection"/> |
| 181 |
<xs:enumeration value="wkbCircularString"/> |
| 182 |
<xs:enumeration value="wkbCompoundCurve"/> |
| 183 |
<xs:enumeration value="wkbCurvePolygon"/> |
| 184 |
<xs:enumeration value="wkbMultiCurve"/> |
| 185 |
<xs:enumeration value="wkbMultiSurface"/> |
| 186 |
<xs:enumeration value="wkbCurve"/> |
| 187 |
<xs:enumeration value="wkbSurface"/> |
| 188 |
<xs:enumeration value="wkbUnknown25D"/> |
| 189 |
<xs:enumeration value="wkbPoint25D"/> |
| 190 |
<xs:enumeration value="wkbLineString25D"/> |
| 191 |
<xs:enumeration value="wkbPolygon25D"/> |
| 192 |
<xs:enumeration value="wkbMultiPoint25D"/> |
| 193 |
<xs:enumeration value="wkbMultiLineString25D"/> |
| 194 |
<xs:enumeration value="wkbMultiPolygon25D"/> |
| 195 |
<xs:enumeration value="wkbGeometryCollection25D"/> |
| 196 |
<xs:enumeration value="wkbCircularStringZ"/> |
| 197 |
<xs:enumeration value="wkbCompoundCurveZ"/> |
| 198 |
<xs:enumeration value="wkbCurvePolygonZ"/> |
| 199 |
<xs:enumeration value="wkbMultiCurveZ"/> |
| 200 |
<xs:enumeration value="wkbMultiSurfaceZ"/> |
| 201 |
<xs:enumeration value="wkbCurveZ"/> |
| 202 |
<xs:enumeration value="wkbSurfaceZ"/> |
| 203 |
|
| 204 |
<xs:enumeration value="wkbPointM"/> |
| 205 |
<xs:enumeration value="wkbLineStringM"/> |
| 206 |
<xs:enumeration value="wkbPolygonM"/> |
| 207 |
<xs:enumeration value="wkbMultiPointM"/> |
| 208 |
<xs:enumeration value="wkbMultiLineStringM"/> |
| 209 |
<xs:enumeration value="wkbMultiPolygonM"/> |
| 210 |
<xs:enumeration value="wkbGeometryCollectionM"/> |
| 211 |
<xs:enumeration value="wkbCircularStringM"/> |
| 212 |
<xs:enumeration value="wkbCompoundCurveM"/> |
| 213 |
<xs:enumeration value="wkbCurvePolygonM"/> |
| 214 |
<xs:enumeration value="wkbMultiCurveM"/> |
| 215 |
<xs:enumeration value="wkbMultiSurfaceM"/> |
| 216 |
<xs:enumeration value="wkbCurveM"/> |
| 217 |
<xs:enumeration value="wkbSurfaceM"/> |
| 218 |
|
| 219 |
<xs:enumeration value="wkbPointZM"/> |
| 220 |
<xs:enumeration value="wkbLineStringZM"/> |
| 221 |
<xs:enumeration value="wkbPolygonZM"/> |
| 222 |
<xs:enumeration value="wkbMultiPointZM"/> |
| 223 |
<xs:enumeration value="wkbMultiLineStringZM"/> |
| 224 |
<xs:enumeration value="wkbMultiPolygonZM"/> |
| 225 |
<xs:enumeration value="wkbGeometryCollectionZM"/> |
| 226 |
<xs:enumeration value="wkbCircularStringZM"/> |
| 227 |
<xs:enumeration value="wkbCompoundCurveZM"/> |
| 228 |
<xs:enumeration value="wkbCurvePolygonZM"/> |
| 229 |
<xs:enumeration value="wkbMultiCurveZM"/> |
| 230 |
<xs:enumeration value="wkbMultiSurfaceZM"/> |
| 231 |
<xs:enumeration value="wkbCurveZM"/> |
| 232 |
<xs:enumeration value="wkbSurfaceZM"/> |
| 233 |
|
| 234 |
<xs:enumeration value="wkbPolyhedralSurface"/> |
| 235 |
<xs:enumeration value="wkbTIN"/> |
| 236 |
<xs:enumeration value="wkbTriangle"/> |
| 237 |
<xs:enumeration value="wkbPolyhedralSurfaceZ"/> |
| 238 |
<xs:enumeration value="wkbTINZ"/> |
| 239 |
<xs:enumeration value="wkbTriangleZ"/> |
| 240 |
<xs:enumeration value="wkbPolyhedralSurfaceM"/> |
| 241 |
<xs:enumeration value="wkbTINM"/> |
| 242 |
<xs:enumeration value="wkbTriangleM"/> |
| 243 |
<xs:enumeration value="wkbPolyhedralSurfaceZM"/> |
| 244 |
<xs:enumeration value="wkbTINZM"/> |
| 245 |
<xs:enumeration value="wkbTriangleZM"/> |
| 246 |
|
| 247 |
</xs:restriction> |
| 248 |
</xs:simpleType> |
| 249 |
|
| 250 |
<xs:complexType name="FieldTypeWithoutSrc"> |
| 251 |
<xs:attribute name="name" type="nonEmptyStringType" use="required"/> |
| 252 |
<xs:attribute name="type" type="OGRFieldTypeType" default="String"/> |
| 253 |
<xs:attribute name="subtype" type="OGRFieldSubTypeType" default="None"/> |
| 254 |
<xs:attribute name="width" type="xs:nonNegativeInteger"/> |
| 255 |
<xs:attribute name="precision" type="xs:nonNegativeInteger"/> |
| 256 |
<xs:attribute name="nullable" type="OGRBooleanType" default="true"/> |
| 257 |
<xs:attribute name="default" type="xs:string"/> |
| 258 |
<xs:attribute name="unique" type="OGRBooleanType" default="false"/> <!-- new in GDAL 3.2 --> |
| 259 |
<xs:attribute name="alternativeName" type="xs:string"/> <!-- new in GDAL 3.7 --> |
| 260 |
<xs:attribute name="comment" type="xs:string"/> <!-- new in GDAL 3.7 --> |
| 261 |
</xs:complexType> |
| 262 |
|
| 263 |
<xs:complexType name="FieldType"> |
| 264 |
<xs:complexContent> |
| 265 |
<xs:extension base="FieldTypeWithoutSrc"> |
| 266 |
<xs:attribute name="src" type="nonEmptyStringType"> |
| 267 |
<xs:annotation> |
| 268 |
<xs:documentation>Defaults to the value of "name" if not specified.</xs:documentation> |
| 269 |
</xs:annotation> |
| 270 |
</xs:attribute> |
| 271 |
</xs:extension> |
| 272 |
</xs:complexContent> |
| 273 |
</xs:complexType> |
| 274 |
|
| 275 |
<xs:simpleType name="OGRFieldTypeType"> |
| 276 |
<xs:restriction base="xs:string"> |
| 277 |
<xs:enumeration value="Integer"/> |
| 278 |
<xs:enumeration value="integer"/> |
| 279 |
<xs:enumeration value="Integer64"/> |
| 280 |
<xs:enumeration value="integer64"/> |
| 281 |
<xs:enumeration value="Real"/> |
| 282 |
<xs:enumeration value="real"/> |
| 283 |
<xs:enumeration value="String"/> |
| 284 |
<xs:enumeration value="string"/> |
| 285 |
<xs:enumeration value="IntegerList"/> |
| 286 |
<xs:enumeration value="integerlist"/> |
| 287 |
<xs:enumeration value="Integer64List"/> |
| 288 |
<xs:enumeration value="integer64list"/> |
| 289 |
<xs:enumeration value="RealList"/> |
| 290 |
<xs:enumeration value="reallist"/> |
| 291 |
<xs:enumeration value="StringList"/> |
| 292 |
<xs:enumeration value="stringlist"/> |
| 293 |
<xs:enumeration value="Binary"/> |
| 294 |
<xs:enumeration value="binary"/> |
| 295 |
<xs:enumeration value="Date"/> |
| 296 |
<xs:enumeration value="date"/> |
| 297 |
<xs:enumeration value="Time"/> |
| 298 |
<xs:enumeration value="time"/> |
| 299 |
<xs:enumeration value="DateTime"/> |
| 300 |
<xs:enumeration value="datetime"/> |
| 301 |
</xs:restriction> |
| 302 |
</xs:simpleType> |
| 303 |
|
| 304 |
<xs:simpleType name="OGRFieldSubTypeType"> |
| 305 |
<xs:restriction base="xs:string"> |
| 306 |
<xs:enumeration value="None"/> |
| 307 |
<xs:enumeration value="Boolean"/> |
| 308 |
<xs:enumeration value="Int16"/> |
| 309 |
<xs:enumeration value="Float32"/> |
| 310 |
</xs:restriction> |
| 311 |
</xs:simpleType> |
| 312 |
|
| 313 |
<xs:simpleType name="EncodingType"> |
| 314 |
<xs:restriction base="xs:string"> |
| 315 |
<xs:enumeration value="Direct"/> |
| 316 |
<xs:enumeration value="None"/> |
| 317 |
<xs:enumeration value="WKT"/> |
| 318 |
<xs:enumeration value="WKB"/> |
| 319 |
<xs:enumeration value="Shape"/> |
| 320 |
<xs:enumeration value="shape"/> |
| 321 |
<xs:enumeration value="PointFromColumns"/> |
| 322 |
</xs:restriction> |
| 323 |
</xs:simpleType> |
| 324 |
|
| 325 |
<xs:attributeGroup name="GeometryFieldTypeAttrGroupWithoutSrc"> |
| 326 |
<xs:attribute name="encoding" type="EncodingType"> |
| 327 |
<xs:annotation> |
| 328 |
<xs:documentation>Defaults to Direct.</xs:documentation> |
| 329 |
</xs:annotation> |
| 330 |
</xs:attribute> |
| 331 |
<xs:attribute name="name" type="xs:string"> |
| 332 |
<xs:annotation> |
| 333 |
<xs:documentation>Name of the geometry field</xs:documentation> |
| 334 |
</xs:annotation> |
| 335 |
</xs:attribute> |
| 336 |
<xs:attribute name="x" type="nonEmptyStringType"> |
| 337 |
<xs:annotation> |
| 338 |
<xs:documentation>Only used if encoding = "PointFromColumns"</xs:documentation> |
| 339 |
</xs:annotation> |
| 340 |
</xs:attribute> |
| 341 |
<xs:attribute name="y" type="nonEmptyStringType"> |
| 342 |
<xs:annotation> |
| 343 |
<xs:documentation>Only used if encoding = "PointFromColumns"</xs:documentation> |
| 344 |
</xs:annotation> |
| 345 |
</xs:attribute> |
| 346 |
<xs:attribute name="z" type="nonEmptyStringType"> |
| 347 |
<xs:annotation> |
| 348 |
<xs:documentation>Only used if encoding = "PointFromColumns"</xs:documentation> |
| 349 |
</xs:annotation> |
| 350 |
</xs:attribute> |
| 351 |
<xs:attribute name="m" type="nonEmptyStringType"> |
| 352 |
<xs:annotation> |
| 353 |
<xs:documentation>Only used if encoding = "PointFromColumns"</xs:documentation> |
| 354 |
</xs:annotation> |
| 355 |
</xs:attribute> |
| 356 |
<xs:attribute name="useSpatialSubquery" type="OGRBooleanType"> |
| 357 |
<xs:annotation> |
| 358 |
<xs:documentation>Only used if encoding = "PointFromColumns". Defaults to TRUE.</xs:documentation> |
| 359 |
</xs:annotation> |
| 360 |
</xs:attribute> |
| 361 |
<xs:attribute name="reportSrcColumn" type="OGRBooleanType"> |
| 362 |
<xs:annotation> |
| 363 |
<xs:documentation>Only used if no Field element is found at the OGRVRTLayer level</xs:documentation> |
| 364 |
</xs:annotation> |
| 365 |
</xs:attribute> |
| 366 |
<xs:attribute name="nullable" type="OGRBooleanType" default="true"/> |
| 367 |
</xs:attributeGroup> |
| 368 |
|
| 369 |
<xs:complexType name="GeometryFieldTypeWithoutSrc"> |
| 370 |
<xs:sequence> |
| 371 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 372 |
<xs:element name="GeometryType" type="GeometryTypeType"/> |
| 373 |
<xs:element name="SrcRegion" type="SrcRegionType"/> |
| 374 |
<xs:element name="SRS" type="nonEmptyStringType"/> |
| 375 |
<xs:group ref="ExtentType"/> |
| 376 |
<xs:element name="XYResolution" type="xs:double" minOccurs="0" maxOccurs="1"/> |
| 377 |
<xs:element name="ZResolution" type="xs:double" minOccurs="0" maxOccurs="1"/> |
| 378 |
<xs:element name="MResolution" type="xs:double" minOccurs="0" maxOccurs="1"/> |
| 379 |
</xs:choice> |
| 380 |
</xs:sequence> |
| 381 |
<xs:attributeGroup ref="GeometryFieldTypeAttrGroupWithoutSrc"/> |
| 382 |
</xs:complexType> |
| 383 |
|
| 384 |
<xs:complexType name="GeometryFieldType"> |
| 385 |
<xs:complexContent> |
| 386 |
<xs:extension base="GeometryFieldTypeWithoutSrc"> |
| 387 |
<xs:attribute name="field" type="nonEmptyStringType"> |
| 388 |
<xs:annotation> |
| 389 |
<xs:documentation>Used if encoding = "WKT", "WKB" or "Shape" to find |
| 390 |
the attribute field of the source layer. |
| 391 |
Used also in multiple geometry fields scenario to retrieve the |
| 392 |
source geometry field matching the target VRT geometry field.</xs:documentation> |
| 393 |
</xs:annotation> |
| 394 |
</xs:attribute> |
| 395 |
</xs:extension> |
| 396 |
</xs:complexContent> |
| 397 |
</xs:complexType> |
| 398 |
|
| 399 |
<xs:complexType name="SrcRegionType"> |
| 400 |
<xs:simpleContent> |
| 401 |
<xs:extension base="PolygonOrMultiPolygonWKTType"> |
| 402 |
<xs:attribute name="clip" type="OGRBooleanType"> |
| 403 |
<xs:annotation> |
| 404 |
<xs:documentation>Defaults to FALSE.</xs:documentation> |
| 405 |
</xs:annotation> |
| 406 |
</xs:attribute> |
| 407 |
</xs:extension> |
| 408 |
</xs:simpleContent> |
| 409 |
</xs:complexType> |
| 410 |
|
| 411 |
<xs:simpleType name="PolygonOrMultiPolygonWKTType"> |
| 412 |
<xs:annotation> |
| 413 |
<xs:documentation>A valid WKT for a POLYGON or a MULTIPOLYGON</xs:documentation> |
| 414 |
</xs:annotation> |
| 415 |
<xs:restriction base="xs:string"> |
| 416 |
<xs:pattern value="(MULTI)?POLYGON.*"/> |
| 417 |
</xs:restriction> |
| 418 |
</xs:simpleType> |
| 419 |
|
| 420 |
<xs:simpleType name="OGRBooleanType"> |
| 421 |
<xs:restriction base="xs:string"> |
| 422 |
<xs:enumeration value="1"/> |
| 423 |
<xs:enumeration value="0"/> |
| 424 |
<xs:enumeration value="ON"/> |
| 425 |
<xs:enumeration value="OFF"/> |
| 426 |
<xs:enumeration value="on"/> |
| 427 |
<xs:enumeration value="off"/> |
| 428 |
<xs:enumeration value="YES"/> |
| 429 |
<xs:enumeration value="NO"/> |
| 430 |
<xs:enumeration value="yes"/> |
| 431 |
<xs:enumeration value="no"/> |
| 432 |
<xs:enumeration value="TRUE"/> |
| 433 |
<xs:enumeration value="FALSE"/> |
| 434 |
<xs:enumeration value="true"/> |
| 435 |
<xs:enumeration value="false"/> |
| 436 |
</xs:restriction> |
| 437 |
</xs:simpleType> |
| 438 |
|
| 439 |
<xs:complexType name="OGRVRTWarpedLayerType"> |
| 440 |
<xs:sequence> |
| 441 |
<xs:choice minOccurs="1" maxOccurs="1"> |
| 442 |
<xs:element name="OGRVRTLayer" type="OGRVRTLayerType"/> |
| 443 |
<xs:element name="OGRVRTWarpedLayer" type="OGRVRTWarpedLayerType"/> |
| 444 |
<xs:element name="OGRVRTUnionLayer" type="OGRVRTUnionLayerType"/> |
| 445 |
</xs:choice> |
| 446 |
<xs:element name="WarpedGeomFieldName" type="nonEmptyStringType" minOccurs="0" maxOccurs="1"/> |
| 447 |
<xs:element name="SrcSRS" type="nonEmptyStringType" minOccurs="0" maxOccurs="1"/> |
| 448 |
<xs:element name="TargetSRS" type="nonEmptyStringType" minOccurs="1" maxOccurs="1"/> |
| 449 |
<xs:group ref="ExtentType" minOccurs="0" maxOccurs="1"/> |
| 450 |
</xs:sequence> |
| 451 |
</xs:complexType> |
| 452 |
|
| 453 |
<xs:complexType name="OGRVRTUnionLayerType"> |
| 454 |
<xs:sequence> |
| 455 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 456 |
<xs:element name="OGRVRTLayer" type="OGRVRTLayerType"> |
| 457 |
<xs:annotation> |
| 458 |
<xs:documentation>May be repeated</xs:documentation> |
| 459 |
</xs:annotation> |
| 460 |
</xs:element> |
| 461 |
<xs:element name="OGRVRTWarpedLayer" type="OGRVRTWarpedLayerType"> |
| 462 |
<xs:annotation> |
| 463 |
<xs:documentation>May be repeated</xs:documentation> |
| 464 |
</xs:annotation> |
| 465 |
</xs:element> |
| 466 |
<xs:element name="OGRVRTUnionLayer" type="OGRVRTUnionLayerType"> |
| 467 |
<xs:annotation> |
| 468 |
<xs:documentation>May be repeated</xs:documentation> |
| 469 |
</xs:annotation> |
| 470 |
</xs:element> |
| 471 |
|
| 472 |
<xs:element name="GeometryType" type="GeometryTypeType"> |
| 473 |
<xs:annotation> |
| 474 |
<xs:documentation>Use GeometryField.GeometryType for multi-geometry field support.</xs:documentation> |
| 475 |
</xs:annotation> |
| 476 |
</xs:element> |
| 477 |
<xs:element name="LayerSRS" type="nonEmptyStringType"> |
| 478 |
<xs:annotation> |
| 479 |
<xs:documentation>Use GeometryField.SRS for multi-geometry field support.</xs:documentation> |
| 480 |
</xs:annotation> |
| 481 |
</xs:element> |
| 482 |
<xs:element name="FieldStrategy" type="FieldStrategyType"> |
| 483 |
<xs:annotation> |
| 484 |
<xs:documentation>Defaults to Union if no Field or GeometryField element is specified.</xs:documentation> |
| 485 |
</xs:annotation> |
| 486 |
</xs:element> |
| 487 |
<xs:element name="Field" type="FieldTypeWithoutSrc"> |
| 488 |
<xs:annotation> |
| 489 |
<xs:documentation>May be repeated</xs:documentation> |
| 490 |
</xs:annotation> |
| 491 |
</xs:element> |
| 492 |
<xs:element name="GeometryField" type="GeometryFieldTypeWithoutSrc"> |
| 493 |
<xs:annotation> |
| 494 |
<xs:documentation>May be repeated</xs:documentation> |
| 495 |
</xs:annotation> |
| 496 |
</xs:element> |
| 497 |
<xs:element name="PreserveSrcFID" type="OGRBooleanType"> |
| 498 |
<xs:annotation> |
| 499 |
<xs:documentation>Defaults to FALSE.</xs:documentation> |
| 500 |
</xs:annotation> |
| 501 |
</xs:element> |
| 502 |
<xs:element name="SourceLayerFieldName" type="nonEmptyStringType"> |
| 503 |
<xs:annotation> |
| 504 |
<xs:documentation>Name of fields in which to place the name of the source layer of each feature.</xs:documentation> |
| 505 |
</xs:annotation> |
| 506 |
</xs:element> |
| 507 |
<xs:element name="FeatureCount" type="xs:integer"/> |
| 508 |
<xs:group ref="ExtentType"> |
| 509 |
<xs:annotation> |
| 510 |
<xs:documentation>Use GeometryField.ExtentXMin, etc. for multi-geometry field support.</xs:documentation> |
| 511 |
</xs:annotation> |
| 512 |
</xs:group> |
| 513 |
</xs:choice> |
| 514 |
</xs:sequence> |
| 515 |
<xs:attribute name="name" type="nonEmptyStringType" use="required"/> |
| 516 |
</xs:complexType> |
| 517 |
|
| 518 |
<xs:simpleType name="FieldStrategyType"> |
| 519 |
<xs:restriction base="xs:string"> |
| 520 |
<xs:enumeration value="FirstLayer"/> |
| 521 |
<xs:enumeration value="Union"/> |
| 522 |
<xs:enumeration value="Intersection"/> |
| 523 |
</xs:restriction> |
| 524 |
</xs:simpleType> |
| 525 |
|
| 526 |
</xs:schema> |