pyogrio 0.8.0__cp312-cp312-manylinux_2_28_aarch64.whl → 0.10.0__cp312-cp312-manylinux_2_28_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyogrio might be problematic. Click here for more details.

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