Debian Codegraph @

ogr/ogrsf_frmts/gmlas/data/gmlasconf.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /******************************************************************************
4 * Project: GDAL/OGR
5 * Purpose: XML Schema for gmlasconf.xml
6 * Author: Even Rouault, <even dot rouault at spatialys dot com>
7 *
8 **********************************************************************
9 * Copyright (c) 2016, Even Rouault
10 *
11 * SPDX-License-Identifier: MIT
12 ****************************************************************************/
13 -->
14 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
15 elementFormDefault="qualified" version="1.0">
16 <xs:element name="Configuration">
17 <xs:annotation>
18 <xs:documentation>
19 Configuration of GMLAS driver.
20 </xs:documentation>
21 </xs:annotation>
22
23 <xs:complexType>
24 <xs:sequence>
25 <xs:element name="AllowRemoteSchemaDownload" minOccurs="0"
26 type="xs:boolean">
27 <xs:annotation>
28 <xs:documentation>
29 Whether downloading remote schemas is allowed. Default is true.
30 </xs:documentation>
31 </xs:annotation>
32 </xs:element>
33 <xs:element name="SchemaCache" minOccurs="0">
34 <xs:annotation>
35 <xs:documentation>
36 Describe working of schema cache.
37 </xs:documentation>
38 </xs:annotation>
39 <xs:complexType>
40 <xs:sequence>
41 <xs:element name="Directory" minOccurs="0" type="xs:string">
42 <xs:annotation>
43 <xs:documentation>
44 Name of the cache directory. If not specified, this
45 defaults to $HOME/.gdal/gmlas_xsd_cache.
46 Ignored if 'enabled' is not true.
47 </xs:documentation>
48 </xs:annotation>
49 </xs:element>
50 </xs:sequence>
51 <xs:attribute name="enabled" type="xs:boolean">
52 <xs:annotation>
53 <xs:documentation>
54 Whether the cache is enabled. Default is true.
55 </xs:documentation>
56 </xs:annotation>
57 </xs:attribute>
58 </xs:complexType>
59 </xs:element>
60
61 <xs:element name="SchemaAnalysisOptions" minOccurs="0">
62 <xs:annotation>
63 <xs:documentation>
64 Describe option that affect the Xerces schema parser.
65 </xs:documentation>
66 </xs:annotation>
67 <xs:complexType>
68 <xs:sequence>
69 <xs:element name="SchemaFullChecking" minOccurs="0" type="xs:boolean">
70 <xs:annotation>
71 <xs:documentation>
72 Whether to enable full schema constraint checking, including checking
73 which may be time-consuming or memory intensive. Currently,
74 particle unique attribution constraint checking and particle
75 derivation restriction checking are controlled by this option.
76 Defaults to true.
77 </xs:documentation>
78 </xs:annotation>
79 </xs:element>
80 <xs:element name="HandleMultipleImports" minOccurs="0" type="xs:boolean">
81 <xs:annotation>
82 <xs:documentation>
83 Whether to allow multiple schemas with the same namespace
84 to be imported.
85 Defaults to false.
86 </xs:documentation>
87 </xs:annotation>
88 </xs:element>
89 </xs:sequence>
90 </xs:complexType>
91 </xs:element>
92
93 <xs:element name="Validation" minOccurs="0">
94 <xs:annotation>
95 <xs:documentation>
96 Describe if and how validation of the document against the
97 schema is done.
98 </xs:documentation>
99 </xs:annotation>
100 <xs:complexType>
101 <xs:sequence>
102 <xs:element name="FailIfError" type="xs:boolean">
103 <xs:annotation>
104 <xs:documentation>
105 Whether a validation error should prevent dataset
106 opening.
107 Ignored if 'enabled' is not true.
108 Default is false.
109 </xs:documentation>
110 </xs:annotation>
111 </xs:element>
112 </xs:sequence>
113 <xs:attribute name="enabled" type="xs:boolean">
114 <xs:annotation>
115 <xs:documentation>
116 Whether validation is enabled. Default is false.
117 </xs:documentation>
118 </xs:annotation>
119 </xs:attribute>
120 </xs:complexType>
121 </xs:element>
122 <xs:element name="ExposeMetadataLayers" minOccurs="0" type="xs:boolean">
123 <xs:annotation>
124 <xs:documentation>
125 Whether the _ogr_layers_metadata, _ogr_fields_metadata and
126 _ogr_layer_relationships layers that show how OGR layers and
127 fields are built from the schemas should be exposed as
128 available layers.
129 Default is false.
130 </xs:documentation>
131 </xs:annotation>
132 </xs:element>
133
134 <xs:element name="LayerBuildingRules" minOccurs="0">
135 <xs:annotation>
136 <xs:documentation>
137 Tunable rules that affect how layers and fields are built from
138 the schema.
139 </xs:documentation>
140 </xs:annotation>
141 <xs:complexType>
142 <xs:sequence>
143
144 <xs:element name="AlwaysGenerateOGRId" minOccurs="0" type="xs:boolean">
145 <xs:annotation>
146 <xs:documentation>
147 Whether a 'ogr_pkid' attribute should always be generated,
148 even if the underlying XML element has a required attribute
149 of type ID. Turning it to true can be useful if the
150 uniqueness of such attributes is not trused.
151 Default is false.
152 </xs:documentation>
153 </xs:annotation>
154 </xs:element>
155
156 <xs:element name="RemoveUnusedLayers" minOccurs="0" type="xs:boolean">
157 <xs:annotation>
158 <xs:documentation>
159 Whether to remove any OGR layer without any feature, during the
160 initial scan pass.
161 Default is false.
162 </xs:documentation>
163 </xs:annotation>
164 </xs:element>
165
166 <xs:element name="RemoveUnusedFields" minOccurs="0" type="xs:boolean">
167 <xs:annotation>
168 <xs:documentation>
169 Whether to remove any unused OGR field, during the
170 initial scan pass.
171 Default is false.
172 </xs:documentation>
173 </xs:annotation>
174 </xs:element>
175
176 <xs:element name="UseArrays" minOccurs="0" type="xs:boolean">
177 <xs:annotation>
178 <xs:documentation>
179 Whether OGR array types (StringList, IntegerList,
180 Integer64List and RealList) can be used to store
181 repeated values of the corresponding base types.
182 Default is true.
183 </xs:documentation>
184 </xs:annotation>
185 </xs:element>
186
187 <xs:element name="UseNullState" minOccurs="0" type="xs:boolean">
188 <xs:annotation>
189 <xs:documentation>
190 Whether xsi:nil="true" should be mapped from/to the OGR
191 null field state. If set to false, then
192 a XXX_nil field will be added when necessary. If set to true,
193 then unset and null states are used (but this is not very
194 convenient when converting to SQL databases where both states
195 are equivalent).
196 Default is false.
197 </xs:documentation>
198 </xs:annotation>
199 </xs:element>
200
201 <xs:element name="GML" minOccurs="0">
202 <xs:annotation>
203 <xs:documentation>
204 Settings specific to documents that import the GML namespace.
205 </xs:documentation>
206 </xs:annotation>
207 <xs:complexType>
208 <xs:sequence>
209 <xs:element name="IncludeGeometryXML" minOccurs="0"
210 type="xs:boolean">
211 <xs:annotation>
212 <xs:documentation>
213 Whether the XML description of a GML geometry should
214 be stored in a string attribute (whose name is the
215 element name suffixed by _xml). This is in addition
216 to storing the geometry as a OGR geometry.
217 Default is false.
218 </xs:documentation>
219 </xs:annotation>
220 </xs:element>
221 <xs:element name="InstantiateGMLFeaturesOnly" minOccurs="0"
222 type="xs:boolean">
223 <xs:annotation>
224 <xs:documentation>
225 Whether, when dealing with schemas that import the
226 GML namespace, and that at least one of them has
227 elements that derive from gml:_Feature or
228 gml:AbstractFeatureonly, only such elements should be
229 instantiated as OGR layers, during the first pass that
230 iterates over top level elements of the imported
231 schemas.
232 Note: for technical reasons, other elements may end
233 up being exposed as OGR layers, but this setting
234 is a first way of limiting the number of OGR layers.
235 Default is true.
236 </xs:documentation>
237 </xs:annotation>
238 </xs:element>
239 </xs:sequence>
240 </xs:complexType>
241 </xs:element>
242
243 <xs:element name="IdentifierMaxLength" minOccurs="0">
244 <xs:annotation>
245 <xs:documentation>
246 Maximum size of layer and field identifiers. If identifiers
247 are naturally bigger than the limit, a logic truncates
248 them while ensuring their unicity.
249 When absent, unlimited size.
250 </xs:documentation>
251 </xs:annotation>
252 <xs:simpleType>
253 <xs:restriction base="xs:positiveInteger">
254 <xs:minInclusive value="10"/>
255 </xs:restriction>
256 </xs:simpleType>
257 </xs:element>
258
259 <xs:element name="CaseInsensitiveIdentifier" minOccurs="0" type="xs:boolean">
260 <xs:annotation>
261 <xs:documentation>
262 Whether layer and field names should be consider equal in a
263 case insensitive way. This is important for conversion to
264 Postgres when identifiers are laundered in lower case
265 Default is true.
266 </xs:documentation>
267 </xs:annotation>
268 </xs:element>
269
270 <xs:element name="PostgreSQLIdentifierLaundering" minOccurs="0" type="xs:boolean">
271 <xs:annotation>
272 <xs:documentation>
273 Whether layer and field names should be laundered like the
274 OGR PostgreSQL driver does by default, ie identifiers put
275 in lower cases and a few special characters( single quote,
276 dash, sharp) replaced by underscore. This can help to post-
277 process the _ogr_layer_relationships layers more easily or,
278 for write support.
279 Note: this laundering is safe for other backends as well.
280 Default is true.
281 </xs:documentation>
282 </xs:annotation>
283 </xs:element>
284
285 <xs:element name="FlatteningRules" minOccurs="0">
286 <xs:complexType>
287 <xs:sequence>
288 <xs:element name="MaximumNumberOfFields" type="xs:int" minOccurs="0">
289 <xs:annotation>
290 <xs:documentation>
291 Maximum number of fields in an element considered
292 for flattening.
293 Default is 10.
294 </xs:documentation>
295 </xs:annotation>
296 </xs:element>
297 <xs:element name="Namespaces" type="namespacesType" minOccurs="0"/>
298 <xs:element name="ForceFlatteningXPath" type="xs:string" minOccurs="0" maxOccurs="unbounded">
299 <xs:annotation>
300 <xs:documentation>
301 XPath of element that will be considered for flattening
302 even if it has more than MaximumNumberOfFields fields,
303 or if it is referenced several times by other elements.
304 Note: other constraints might make it impossible to
305 flatten it, for example if it has repeated elements.
306 </xs:documentation>
307 </xs:annotation>
308 </xs:element>
309 <xs:element name="DisableFlatteningXPath" type="xs:string" minOccurs="0" maxOccurs="unbounded">
310 <xs:annotation>
311 <xs:documentation>
312 XPath of element that will NOT be considered for flattening
313 even if it has less or MaximumNumberOfFields fields.
314 </xs:documentation>
315 </xs:annotation>
316 </xs:element>
317 </xs:sequence>
318 </xs:complexType>
319 </xs:element>
320
321 <xs:element name="SWEProcessing" minOccurs="0">
322 <xs:annotation>
323 <xs:documentation>
324 Configuration of special processing for elements in
325 the http://www.opengis.net/swe/2.0 namespace.
326 </xs:documentation>
327 </xs:annotation>
328 <xs:complexType>
329 <xs:sequence>
330 <xs:element name="Activation" minOccurs="0">
331 <xs:annotation>
332 <xs:documentation>
333 If and how SWE processing is enabled.
334 Default is ifSWENamespaceFoundInTopElement.
335 </xs:documentation>
336 </xs:annotation>
337 <xs:simpleType>
338 <xs:restriction base="xs:string">
339 <xs:enumeration value="ifSWENamespaceFoundInTopElement">
340 <xs:annotation>
341 <xs:documentation>
342 If the http://www.opengis.net/swe/2.0
343 namespace is found, SWE special
344 processing will be enabled.
345 </xs:documentation>
346 </xs:annotation>
347 </xs:enumeration>
348 <xs:enumeration value="true"/>
349 <xs:enumeration value="false"/>
350 </xs:restriction>
351 </xs:simpleType>
352 </xs:element>
353 <xs:element name="ProcessDataRecord" type="xs:boolean"
354 minOccurs="0" maxOccurs="unbounded">
355 <xs:annotation>
356 <xs:documentation>
357 If swe:DataRecord must be parsed. Default is true.
358 </xs:documentation>
359 </xs:annotation>
360 </xs:element>
361 <xs:element name="ProcessDataArray" type="xs:boolean"
362 minOccurs="0" maxOccurs="unbounded">
363 <xs:annotation>
364 <xs:documentation>
365 If swe:DataArray and swe:DataStream must be parsed.
366 Default is true.
367 </xs:documentation>
368 </xs:annotation>
369 </xs:element>
370 </xs:sequence>
371 </xs:complexType>
372 </xs:element>
373
374 </xs:sequence>
375 </xs:complexType>
376 </xs:element>
377
378
379 <xs:element name="TypingConstraints" minOccurs="0">
380 <xs:annotation>
381 <xs:documentation>
382 Constraints to specify the types of children of elements of
383 type xs:anyType.
384 </xs:documentation>
385 </xs:annotation>
386 <xs:complexType>
387 <xs:sequence>
388 <xs:element name="Namespaces" type="namespacesType" minOccurs="0"/>
389
390 <xs:element name="ChildConstraint" minOccurs="0" maxOccurs="unbounded">
391 <xs:complexType>
392 <xs:sequence>
393 <xs:element name="ContainerXPath" type="xs:string"/>
394 <xs:element name="ChildrenElements" maxOccurs="unbounded">
395 <xs:complexType>
396 <xs:sequence>
397 <xs:element name="Element" type="xs:string" maxOccurs="unbounded"/>
398 </xs:sequence>
399 </xs:complexType>
400 </xs:element>
401 </xs:sequence>
402 </xs:complexType>
403 </xs:element>
404 </xs:sequence>
405 </xs:complexType>
406 </xs:element>
407
408 <xs:element name="XLinkResolution" minOccurs="0">
409 <xs:annotation>
410 <xs:documentation>
411 Rules regarding resolution of xlink:href attributes
412 </xs:documentation>
413 </xs:annotation>
414 <xs:complexType>
415 <xs:sequence>
416
417 <xs:element name="Timeout" minOccurs="0" type="xs:positiveInteger">
418 <xs:annotation>
419 <xs:documentation>
420 Timeout in seconds for resolving a HTTP resource.
421 Default: no timeout or value of GDAL_HTTP_TIMEOUT
422 configuration option.
423 </xs:documentation>
424 </xs:annotation>
425 </xs:element>
426
427 <xs:element name="MaxGlobalResolutionTime" minOccurs="0"
428 type="xs:positiveInteger">
429 <xs:annotation>
430 <xs:documentation>
431 Maximum allowed time for resolving all XLinks in a single
432 document.
433 Default: none
434 </xs:documentation>
435 </xs:annotation>
436 </xs:element>
437
438 <xs:element name="MaxFileSize" minOccurs="0">
439 <xs:annotation>
440 <xs:documentation>
441 Maximum file size allowed.
442 Default: 1 MB.
443 </xs:documentation>
444 </xs:annotation>
445 <xs:simpleType>
446 <xs:union memberTypes="xs:positiveInteger unlimitedEnumType"/>
447 </xs:simpleType>
448 </xs:element>
449
450 <xs:element name="ProxyServerPort" minOccurs="0" type="xs:string">
451 <xs:annotation>
452 <xs:documentation>
453 Name and port of proxy server (server:port syntax)
454 Default: none or value of GDAL_HTTP_PROXY
455 configuration option.
456 </xs:documentation>
457 </xs:annotation>
458 </xs:element>
459
460 <xs:element name="ProxyUserPassword" minOccurs="0" type="xs:string">
461 <xs:annotation>
462 <xs:documentation>
463 User name and password to use for proxy server
464 (username:password syntax)
465 Default: none or value of GDAL_HTTP_PROXYUSERPW
466 configuration option.
467 </xs:documentation>
468 </xs:annotation>
469 </xs:element>
470
471 <xs:element name="ProxyAuth" minOccurs="0" type="xs:string">
472 <xs:annotation>
473 <xs:documentation>
474 Proxy authentication method: one of Basic, NTLM, Digest
475 or Any.
476 Default: none or value of GDAL_PROXY_AUTH
477 configuration option.
478 </xs:documentation>
479 </xs:annotation>
480 </xs:element>
481
482 <xs:element name="CacheDirectory" minOccurs="0" type="xs:string">
483 <xs:annotation>
484 <xs:documentation>
485 Name of the cache directory for resolved documents.
486 If not specified, this defaults to $HOME/.gdal/gmlas_xlink_resolution_cache.
487 The cache is only used if enabled in DefaultResolution or
488 particular URLSpecificResolution rules.
489 </xs:documentation>
490 </xs:annotation>
491 </xs:element>
492
493 <xs:element name="DefaultResolution" minOccurs="0">
494 <xs:annotation>
495 <xs:documentation>
496 Default rules that apply for all URLs that are not referenced
497 by a dedicated URLSpecificResolution rule.
498 </xs:documentation>
499 </xs:annotation>
500 <xs:complexType>
501 <xs:sequence>
502
503 <xs:element name="AllowRemoteDownload" minOccurs="0"
504 type="xs:boolean">
505 <xs:annotation>
506 <xs:documentation>
507 Whether downloading remote resources is allowed.
508 If false, only locally cached resources will be used.
509 Default is true.
510 </xs:documentation>
511 </xs:annotation>
512 </xs:element>
513
514 <xs:element name="ResolutionMode" minOccurs="0">
515 <xs:annotation>
516 <xs:documentation>
517 Resolution mode. Must be XMLRawContent currently
518 </xs:documentation>
519 </xs:annotation>
520 <xs:simpleType>
521 <xs:restriction base="xs:string">
522 <xs:enumeration value="RawContent">
523 <xs:annotation>
524 <xs:documentation>
525 The content, provided it is of text
526 nature, is set in a field suffixed with
527 _raw
528 </xs:documentation>
529 </xs:annotation>
530 </xs:enumeration>
531 </xs:restriction>
532 </xs:simpleType>
533 </xs:element>
534
535 <xs:element name="ResolutionDepth" minOccurs="0">
536 <xs:annotation>
537 <xs:documentation>
538 Resolution depth. Must be 1 currently.
539 </xs:documentation>
540 </xs:annotation>
541 <xs:simpleType>
542 <xs:restriction base="xs:nonNegativeInteger">
543 <xs:minInclusive value="1"/>
544 <xs:maxInclusive value="1"/>
545 </xs:restriction>
546 </xs:simpleType>
547 </xs:element>
548
549 <xs:element name="CacheResults" minOccurs="0" type="xs:boolean">
550 <xs:annotation>
551 <xs:documentation>
552 Whether resolved documents should be cached.
553 Default is false.
554 </xs:documentation>
555 </xs:annotation>
556 </xs:element>
557
558 </xs:sequence>
559
560 <xs:attribute name="enabled" type="xs:boolean">
561 <xs:annotation>
562 <xs:documentation>
563 Whether default XLink resolution is enabled.
564 Default is false.
565 </xs:documentation>
566 </xs:annotation>
567 </xs:attribute>
568
569 </xs:complexType>
570 </xs:element>
571
572 <xs:element name="URLSpecificResolution" minOccurs="0" maxOccurs="unbounded">
573 <xs:annotation>
574 <xs:documentation>
575 Particular rule that apply for all URLs starting with
576 a precise prefix. Setting at least one URLSpecificResolution will cause
577 a compulsory initial scan of the whole file to be done so
578 as to identify which xlink:href fields use which URL, so as
579 to create the relevant OGR fields.
580 </xs:documentation>
581 </xs:annotation>
582 <xs:complexType>
583 <xs:sequence>
584
585 <xs:element name="URLPrefix" minOccurs="0" type="xs:anyURI">
586 <xs:annotation>
587 <xs:documentation>
588 URL prefix. All URLs starting with this string will
589 match this rule.
590 </xs:documentation>
591 </xs:annotation>
592 </xs:element>
593
594 <xs:element name="HTTPHeader" minOccurs="0" maxOccurs="unbounded">
595 <xs:annotation>
596 <xs:documentation>
597 Custom HTTP header to send in the GET request.
598 </xs:documentation>
599 </xs:annotation>
600 <xs:complexType>
601 <xs:sequence>
602 <xs:element name="Name" type="xs:string">
603 <xs:annotation>
604 <xs:documentation>
605 HTTP header name
606 </xs:documentation>
607 </xs:annotation>
608 </xs:element>
609 <xs:element name="Value" type="xs:string">
610 <xs:annotation>
611 <xs:documentation>
612 HTTP header value
613 </xs:documentation>
614 </xs:annotation>
615 </xs:element>
616 </xs:sequence>
617 </xs:complexType>
618 </xs:element>
619
620 <xs:element name="AllowRemoteDownload" minOccurs="0"
621 type="xs:boolean">
622 <xs:annotation>
623 <xs:documentation>
624 Whether downloading remote resources is allowed.
625 If false, only locally cached resources will be used.
626 Default is true.
627 </xs:documentation>
628 </xs:annotation>
629 </xs:element>
630
631 <xs:element name="ResolutionMode" minOccurs="0">
632 <xs:annotation>
633 <xs:documentation>
634 Resolution mode.
635 Default is RawContent.
636 </xs:documentation>
637 </xs:annotation>
638 <xs:simpleType>
639 <xs:restriction base="xs:string">
640 <xs:enumeration value="RawContent">
641 <xs:annotation>
642 <xs:documentation>
643 The content, provided it is of text
644 nature, is set in a field suffixed with
645 _rawcontent
646 </xs:documentation>
647 </xs:annotation>
648 </xs:enumeration>
649 <xs:enumeration value="FieldsFromXPath">
650 <xs:annotation>
651 <xs:documentation>
652 The content, assumed to be XML, will be
653 parsed and fields specified with Field
654 created.
655 </xs:documentation>
656 </xs:annotation>
657 </xs:enumeration>
658 </xs:restriction>
659 </xs:simpleType>
660 </xs:element>
661
662 <xs:element name="ResolutionDepth" minOccurs="0">
663 <xs:annotation>
664 <xs:documentation>
665 Resolution depth. Must be 1 currently.
666 </xs:documentation>
667 </xs:annotation>
668 <xs:simpleType>
669 <xs:restriction base="xs:nonNegativeInteger">
670 <xs:minInclusive value="1"/>
671 <xs:maxInclusive value="1"/>
672 </xs:restriction>
673 </xs:simpleType>
674 </xs:element>
675
676 <xs:element name="CacheResults" minOccurs="0" type="xs:boolean">
677 <xs:annotation>
678 <xs:documentation>
679 Whether resolved documents should be cached.
680 Default is false.
681 </xs:documentation>
682 </xs:annotation>
683 </xs:element>
684
685 <xs:element name="Field" minOccurs="0" maxOccurs="unbounded">
686 <xs:annotation>
687 <xs:documentation>
688 Field to create from parsed XML content. Only used
689 if ResolutionMode = FieldsFromXPath
690 </xs:documentation>
691 </xs:annotation>
692 <xs:complexType>
693 <xs:sequence>
694 <xs:element name="Name" type="xs:string">
695 <xs:annotation>
696 <xs:documentation>
697 Field name
698 </xs:documentation>
699 </xs:annotation>
700 </xs:element>
701 <xs:element name="Type">
702 <xs:annotation>
703 <xs:documentation>
704 Field type
705 </xs:documentation>
706 </xs:annotation>
707 <xs:simpleType>
708 <xs:restriction base="xs:string">
709 <xs:enumeration value="string"/>
710 <xs:enumeration value="integer"/>
711 <xs:enumeration value="long"/>
712 <xs:enumeration value="double"/>
713 <xs:enumeration value="dateTime"/>
714 </xs:restriction>
715 </xs:simpleType>
716 </xs:element>
717 <xs:element name="XPath" type="xs:string">
718 <xs:annotation>
719 <xs:documentation>
720 XPath from the root of the resolved document
721 from which to extract the value of the field.
722 Only a restricted subset of the full XPath 1.0
723 syntax is supported, namely the abbreviated syntax
724 with the '//' and '@' axis specifiers.
725 Valid XPath are for example:
726 - [ns1:]foo/[ns2:]bar: matches a bar element as a
727 direct child of a foo element, foo being at any
728 nesting level in the compared XPath.
729 - [ns1:foo]/@[ns2:]baz: matches a baz attribute of a
730 foo element, foo being at any nesting level in
731 the compared XPath
732 - [ns1:]foo//[ns2:]bar: matches a bar element as a
733 direct or indirect child of a foo element,
734 foo being at any nesting level in the compared
735 XPath.
736 - /[ns1:]foo/[ns2:]bar: matches a bar element as a
737 direct child of a foo element, foo being at the
738 root level.
739 </xs:documentation>
740 </xs:annotation>
741 </xs:element>
742 </xs:sequence>
743 </xs:complexType>
744 </xs:element>
745
746 </xs:sequence>
747 </xs:complexType>
748 </xs:element>
749
750
751 <xs:element name="ResolveInternalXLinks" minOccurs="0" type="xs:boolean">
752 <xs:annotation>
753 <xs:documentation>
754 Whether xlink:href pointing to internal resources should be
755 resolved, so as to establish cross-layer relationships.
756 This options requires to keep in-memory xlink:href values
757 as well as feature ids, which in the case of really large
758 documents with many features and/or many cross-references
759 could consume a lot of RAM.
760 Default is true.
761 </xs:documentation>
762 </xs:annotation>
763 </xs:element>
764
765 </xs:sequence>
766 </xs:complexType>
767 </xs:element>
768
769 <xs:element name="IgnoredXPaths" minOccurs="0">
770 <xs:annotation>
771 <xs:documentation>
772 Define elements and attributes that will be ignored when
773 building OGR layer and field definitions.
774 </xs:documentation>
775 </xs:annotation>
776 <xs:complexType>
777 <xs:sequence>
778 <xs:element name="WarnIfIgnoredXPathFoundInDocInstance"
779 minOccurs="0" type="xs:boolean">
780 <xs:annotation>
781 <xs:documentation>
782 Emit a warning each time an element or attribute is
783 found in the document parsed, but ignored because
784 of the ignored XPath defined.
785 Default is true.
786 </xs:documentation>
787 </xs:annotation>
788 </xs:element>
789 <xs:element name="Namespaces" type="namespacesType" minOccurs="0"/>
790 <xs:element name="XPath" minOccurs="0" maxOccurs="unbounded">
791 <xs:annotation>
792 <xs:documentation>
793 A XPath against which elements and attributes found
794 during schema analysis will be compared. If the
795 XPath of the element/attribute of the schema
796 matches this XPath, it will be ignored.
797 Only a restricted subset of the full XPath 1.0
798 syntax is supported, namely the abbreviated syntax
799 with the '//' and '@' axis specifiers.
800 Valid XPath are for example:
801 - [ns1:]foo/[ns2:]bar: matches a bar element as a
802 direct child of a foo element, foo being at any
803 nesting level in the compared XPath.
804 - [ns1:foo]/@[ns2:]baz: matches a baz attribute of a
805 foo element, foo being at any nesting level in
806 the compared XPath
807 - [ns1:]foo//[ns2:]bar: matches a bar element as a
808 direct or indirect child of a foo element,
809 foo being at any nesting level in the compared
810 XPath.
811 - /[ns1:]foo/[ns2:]bar: matches a bar element as a
812 direct child of a foo element, foo being at the
813 root level.
814 </xs:documentation>
815 </xs:annotation>
816 <xs:complexType>
817 <xs:simpleContent>
818 <xs:extension base="xs:string">
819 <xs:attribute name="warnIfIgnoredXPathFoundInDocInstance"
820 type="xs:boolean">
821 <xs:annotation>
822 <xs:documentation>
823 Emit a warning each time an element or attribute is
824 found in the document parsed, but ignored because
825 of the ignored XPath defined.
826 Override the global setting of the
827 WarnIfIgnoredXPathFoundInDocInstance element
828 Default is true.
829 </xs:documentation>
830 </xs:annotation>
831 </xs:attribute>
832 </xs:extension>
833 </xs:simpleContent>
834 </xs:complexType>
835 </xs:element>
836 </xs:sequence>
837 </xs:complexType>
838 </xs:element>
839
840 <xs:element name="WriterConfig" minOccurs="0">
841 <xs:annotation>
842 <xs:documentation>Configuration of GMLAS writer
843 </xs:documentation>
844 </xs:annotation>
845 <xs:complexType>
846 <xs:sequence>
847
848 <xs:element name="IndentationSize" minOccurs="0">
849 <xs:annotation>
850 <xs:documentation>
851 Number of spaces used to indent each level of nesting in
852 XML output.
853 Default is 2.
854 </xs:documentation>
855 </xs:annotation>
856 <xs:simpleType>
857 <xs:restriction base="xs:nonNegativeInteger">
858 <xs:maxInclusive value="8"/>
859 </xs:restriction>
860 </xs:simpleType>
861 </xs:element>
862
863 <xs:element name="Comment" type="xs:string" minOccurs="0">
864 <xs:annotation>
865 <xs:documentation>
866 Comment to add at top of output XML file.
867 </xs:documentation>
868 </xs:annotation>
869 </xs:element>
870
871 <xs:element name="LineFormat" minOccurs="0">
872 <xs:annotation>
873 <xs:documentation>
874 Line format.
875 Default is platform dependent (CR-LF on Windows, LF otherwise)
876 </xs:documentation>
877 </xs:annotation>
878 <xs:simpleType>
879 <xs:restriction base="xs:string">
880 <xs:enumeration value="NATIVE">
881 <xs:annotation>
882 <xs:documentation>
883 Platform dependent (CR-LF on Windows, LF otherwise)
884 </xs:documentation>
885 </xs:annotation>
886 </xs:enumeration>
887 <xs:enumeration value="CRLF">
888 <xs:annotation>
889 <xs:documentation>
890 Windows end-of-line style : CR-LF
891 </xs:documentation>
892 </xs:annotation>
893 </xs:enumeration>
894 <xs:enumeration value="FieldsFromXPath">
895 <xs:annotation>
896 <xs:documentation>
897 Unix end-of-line style: LF
898 </xs:documentation>
899 </xs:annotation>
900 </xs:enumeration>
901 </xs:restriction>
902 </xs:simpleType>
903 </xs:element>
904
905 <xs:element name="SRSNameFormat" minOccurs="0">
906 <xs:annotation>
907 <xs:documentation>
908 Format to use for srsName attributes on geometries.
909 Default is OGC_URL.
910 </xs:documentation>
911 </xs:annotation>
912 <xs:simpleType>
913 <xs:restriction base="xs:string">
914 <xs:enumeration value="SHORT">
915 <xs:annotation>
916 <xs:documentation>
917 srsName will be in the form AUTHORITY_NAME:AUTHORITY_CODE
918 </xs:documentation>
919 </xs:annotation>
920 </xs:enumeration>
921 <xs:enumeration value="OGC_URN">
922 <xs:annotation>
923 <xs:documentation>
924 srsName will be in the form urn:ogc:def:crs:AUTHORITY_NAME::AUTHORITY_CODE
925 </xs:documentation>
926 </xs:annotation>
927 </xs:enumeration>
928 <xs:enumeration value="OGC_URL">
929 <xs:annotation>
930 <xs:documentation>
931 ssrsName will be in the form http://www.opengis.net/def/crs/AUTHORITY_NAME/0/AUTHORITY_CODE
932 </xs:documentation>
933 </xs:annotation>
934 </xs:enumeration>
935 </xs:restriction>
936 </xs:simpleType>
937 </xs:element>
938
939 <xs:element name="Wrapping" minOccurs="0">
940 <xs:annotation>
941 <xs:documentation>
942 How to wrap features in a collection.
943 Default is WFS2_FEATURECOLLECTION
944 </xs:documentation>
945 </xs:annotation>
946 <xs:simpleType>
947 <xs:restriction base="xs:string">
948 <xs:enumeration value="WFS2_FEATURECOLLECTION">
949 <xs:annotation>
950 <xs:documentation>
951 Use wfs:FeatureCollection / wfs:member wrapping
952 </xs:documentation>
953 </xs:annotation>
954 </xs:enumeration>
955 <xs:enumeration value="GMLAS_FEATURECOLLECTION">
956 <xs:annotation>
957 <xs:documentation>
958 Use ogr_gmlas:FeatureCollection / ogr_gmlas:featureMember wrapping
959 </xs:documentation>
960 </xs:annotation>
961 </xs:enumeration>
962 </xs:restriction>
963 </xs:simpleType>
964 </xs:element>
965
966 <xs:element name="Timestamp" minOccurs="0" type="xs:dateTime">
967 <xs:annotation>
968 <xs:documentation>
969 User-specified XML dateTime value for timestamp to use in
970 wfs:FeatureCollection attribute.
971 Only valid for WRAPPING=WFS2_FEATURECOLLECTION.
972 Default is current date-time.
973 </xs:documentation>
974 </xs:annotation>
975 </xs:element>
976
977 <xs:element name="WFS20SchemaLocation" minOccurs="0" type="xs:string">
978 <xs:annotation>
979 <xs:documentation>
980 Path or URL to OGC WFS 2.0 schema.
981 Only valid for WRAPPING=WFS2_FEATURECOLLECTION.
982 Default is http://schemas.opengis.net/wfs/2.0/wfs.xsd.
983 </xs:documentation>
984 </xs:annotation>
985 </xs:element>
986
987 </xs:sequence>
988 </xs:complexType>
989 </xs:element>
990
991 </xs:sequence>
992 </xs:complexType>
993 </xs:element>
994
995 <xs:simpleType name="unlimitedEnumType">
996 <xs:restriction base="xs:string">
997 <xs:enumeration value="unlimited"/>
998 </xs:restriction>
999 </xs:simpleType>
1000
1001 <xs:complexType name="namespacesType">
1002 <xs:annotation>
1003 <xs:documentation>
1004 Define optional namespaces prefix/uri tuples with
1005 which to interpret the XPath elements defined
1006 afterwards.
1007 This allows the user to define different rules when
1008 different namespaces in different XML instances map
1009 to the same prefix. E.g documents referencing
1010 different GML versions may use "gml" as
1011 a prefix for "http://www.opengis.net/gml" or
1012 "http://www.opengis.net/gml/3.2", but it might be
1013 desirable to have different exclusion rules.
1014 When comparing the XPath exclusion rules and the
1015 XPath of the elements/attributes of the parsed
1016 documents, and when the namespace of the XPath
1017 exclusion rule has been defined, the URI will be
1018 used as the unambiguous key. Otherwise prefix
1019 matching will be used.
1020 </xs:documentation>
1021 </xs:annotation>
1022 <xs:sequence>
1023 <xs:element name="Namespace" minOccurs="0" maxOccurs="unbounded">
1024 <xs:annotation>
1025 <xs:documentation>
1026 Define a namespaces prefix/uri tuple with
1027 which to interpret the XPath elements
1028 defined afterwards.
1029 </xs:documentation>
1030 </xs:annotation>
1031 <xs:complexType>
1032 <xs:sequence/>
1033 <xs:attribute name="prefix" type="xs:string" use="required">
1034 <xs:annotation>
1035 <xs:documentation>Namespace prefix.</xs:documentation>
1036 </xs:annotation>
1037 </xs:attribute>
1038 <xs:attribute name="uri" type="xs:string" use="required">
1039 <xs:annotation>
1040 <xs:documentation>Namespace URI.</xs:documentation>
1041 </xs:annotation>
1042 </xs:attribute>
1043 </xs:complexType>
1044 </xs:element>
1045 </xs:sequence>
1046 </xs:complexType>
1047
1048 </xs:schema>