pyogrio 0.9.0__cp39-cp39-manylinux_2_28_aarch64.whl → 0.10.0__cp39-cp39-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 (74) hide show
  1. pyogrio/__init__.py +20 -13
  2. pyogrio/_compat.py +7 -1
  3. pyogrio/_env.py +4 -6
  4. pyogrio/_err.cpython-39-aarch64-linux-gnu.so +0 -0
  5. pyogrio/_geometry.cpython-39-aarch64-linux-gnu.so +0 -0
  6. pyogrio/_io.cpython-39-aarch64-linux-gnu.so +0 -0
  7. pyogrio/_ogr.cpython-39-aarch64-linux-gnu.so +0 -0
  8. pyogrio/_version.py +3 -3
  9. pyogrio/_vsi.cpython-39-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 +26 -26
  24. pyogrio/gdal_data/vcpkg_abi_info.txt +25 -25
  25. pyogrio/geopandas.py +32 -24
  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 +20 -20
  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 +239 -99
  43. pyogrio/tests/test_path.py +29 -17
  44. pyogrio/tests/test_raw_io.py +165 -54
  45. pyogrio/tests/test_util.py +56 -0
  46. pyogrio/util.py +54 -30
  47. {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/LICENSE +1 -1
  48. {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/METADATA +37 -8
  49. {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/RECORD +198 -214
  50. {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/WHEEL +1 -1
  51. pyogrio.libs/{libgdal-6ff0914e.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 -2742
  58. pyogrio/_ogr.pxd +0 -444
  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/poly_not_enough_points.shp.zip +0 -0
  69. pyogrio/tests/fixtures/test_datetime.geojson +0 -7
  70. pyogrio/tests/fixtures/test_datetime_tz.geojson +0 -8
  71. pyogrio/tests/fixtures/test_fgdb.gdb.zip +0 -0
  72. pyogrio/tests/fixtures/test_nested.geojson +0 -18
  73. pyogrio/tests/fixtures/test_ogr_types_list.geojson +0 -12
  74. {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/top_level.txt +0 -0
@@ -30,30 +30,76 @@
30
30
  ****************************************************************************/
31
31
  -->
32
32
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.0">
33
- <xs:element name="VRTDataset">
34
- <xs:complexType>
35
- <xs:sequence>
36
- <xs:choice minOccurs="0" maxOccurs="unbounded">
37
- <xs:element name="SRS" type="SRSType"/>
38
- <xs:element name="GeoTransform" type="xs:string"/>
39
- <xs:element name="GCPList" type="GCPListType"/>
40
- <xs:element name="BlockXSize" type="nonNegativeInteger32"/>
41
- <xs:element name="BlockYSize" type="nonNegativeInteger32"/>
42
- <xs:element name="Metadata" type="MetadataType"/> <!-- may be repeated -->
43
- <xs:element name="VRTRasterBand" type="VRTRasterBandType"/> <!-- may be repeated -->
44
- <xs:element name="MaskBand" type="MaskBandType"/>
45
- <xs:element name="GDALWarpOptions" type="GDALWarpOptionsType"/> <!-- only if subClass="VRTWarpedDataset" -->
46
- <xs:element name="PansharpeningOptions" type="PansharpeningOptionsType"/> <!-- only if subClass="VRTPansharpenedDataset" -->
47
- <xs:element name="Group" type="GroupType"/> <!-- only for multidimensional dataset -->
48
- <xs:element name="OverviewList" type="OverviewListType"/>
49
- </xs:choice>
50
- </xs:sequence>
51
- <xs:attribute name="subClass" type="xs:string"/>
52
- <xs:attribute name="rasterXSize" type="nonNegativeInteger32"/>
53
- <xs:attribute name="rasterYSize" type="nonNegativeInteger32"/>
54
- </xs:complexType>
33
+ <xs:element name="VRTDataset" type="VRTDatasetType">
34
+ <xs:annotation>
35
+ <xs:documentation>Root element</xs:documentation>
36
+ </xs:annotation>
55
37
  </xs:element>
56
38
 
39
+ <xs:complexType name="VRTDatasetType">
40
+ <xs:sequence>
41
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
42
+ <xs:element name="SRS" type="SRSType"/>
43
+ <xs:element name="GeoTransform" type="xs:string"/>
44
+ <xs:element name="GCPList" type="GCPListType"/>
45
+ <xs:element name="BlockXSize" type="nonNegativeInteger32"/>
46
+ <xs:element name="BlockYSize" type="nonNegativeInteger32"/>
47
+ <xs:element name="Metadata" type="MetadataType">
48
+ <xs:annotation>
49
+ <xs:documentation>May be repeated</xs:documentation>
50
+ </xs:annotation>
51
+ </xs:element>
52
+ <xs:element name="VRTRasterBand" type="VRTRasterBandType">
53
+ <xs:annotation>
54
+ <xs:documentation>May be repeated</xs:documentation>
55
+ </xs:annotation>
56
+ </xs:element>
57
+ <xs:element name="MaskBand" type="MaskBandType"/>
58
+ <xs:element name="GDALWarpOptions" type="GDALWarpOptionsType">
59
+ <xs:annotation>
60
+ <xs:documentation>Allowed only if subClass="VRTWarpedDataset"</xs:documentation>
61
+ </xs:annotation>
62
+ </xs:element>
63
+ <xs:element name="PansharpeningOptions" type="PansharpeningOptionsType">
64
+ <xs:annotation>
65
+ <xs:documentation>Allowed only if subClass="VRTPansharpenedDataset"</xs:documentation>
66
+ </xs:annotation>
67
+ </xs:element>
68
+ <xs:element name="Input" type="InputType">
69
+ <xs:annotation>
70
+ <xs:documentation>Allowed only if subClass="VRTProcessedDataset"</xs:documentation>
71
+ </xs:annotation>
72
+ </xs:element>
73
+ <xs:element name="ProcessingSteps" type="ProcessingStepsType">
74
+ <xs:annotation>
75
+ <xs:documentation>Allowed only if subClass="VRTProcessedDataset"</xs:documentation>
76
+ </xs:annotation>
77
+ </xs:element>
78
+ <xs:element name="Group" type="GroupType">
79
+ <xs:annotation>
80
+ <xs:documentation>only for multidimensional dataset</xs:documentation>
81
+ </xs:annotation>
82
+ </xs:element>
83
+ <xs:element name="OverviewList" type="OverviewListType"/>
84
+ </xs:choice>
85
+ </xs:sequence>
86
+ <xs:attribute name="subClass" type="DatasetSubclassType"/>
87
+ <xs:attribute name="rasterXSize" type="nonNegativeInteger32"/>
88
+ <xs:attribute name="rasterYSize" type="nonNegativeInteger32"/>
89
+ </xs:complexType>
90
+
91
+ <xs:simpleType name="DatasetSubclassType">
92
+ <xs:restriction base="xs:string">
93
+ <xs:enumeration value="VRTWarpedDataset"/>
94
+ <xs:enumeration value="VRTPansharpenedDataset"/>
95
+ <xs:enumeration value="VRTProcessedDataset">
96
+ <xs:annotation>
97
+ <xs:documentation>Added in GDAL 3.9</xs:documentation>
98
+ </xs:annotation>
99
+ </xs:enumeration>
100
+ </xs:restriction>
101
+ </xs:simpleType>
102
+
57
103
  <xs:complexType name="OverviewListType">
58
104
  <xs:simpleContent>
59
105
  <xs:extension base="integerList">
@@ -158,6 +204,51 @@
158
204
  </xs:sequence>
159
205
  </xs:complexType>
160
206
 
207
+ <xs:complexType name="InputType">
208
+ <xs:sequence>
209
+ <xs:choice minOccurs="0" maxOccurs="1">
210
+ <xs:element name="SourceFilename" type="SourceFilenameType"/>
211
+ <xs:element name="VRTDataset" type="VRTDatasetType"/>
212
+ </xs:choice>
213
+ </xs:sequence>
214
+ </xs:complexType>
215
+
216
+ <xs:complexType name="ProcessingStepsType">
217
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
218
+ <xs:element name="Step" type="ProcessingStepType"/>
219
+ </xs:sequence>
220
+ </xs:complexType>
221
+
222
+ <xs:complexType name="ProcessingStepType">
223
+ <xs:annotation>
224
+ <xs:documentation>Processing step of a VRTPansharpenedDataset</xs:documentation>
225
+ </xs:annotation>
226
+ <xs:sequence>
227
+ <xs:element name="Algorithm" type="xs:string" minOccurs="1">
228
+ <xs:annotation>
229
+ <xs:documentation>Builtin allowed names are BandAffineCombination, LUT, LocalScaleOffset, Trimming. More algorithms can be registered at run-time.</xs:documentation>
230
+ </xs:annotation>
231
+ </xs:element>
232
+ <xs:element name="Argument" type="ArgumentType" maxOccurs="unbounded"/>
233
+ </xs:sequence>
234
+ <xs:attribute name="name" type="xs:string"/>
235
+ </xs:complexType>
236
+
237
+ <xs:complexType name="ArgumentType">
238
+ <xs:annotation>
239
+ <xs:documentation>Argument of a processing function</xs:documentation>
240
+ </xs:annotation>
241
+ <xs:simpleContent>
242
+ <xs:extension base="xs:string">
243
+ <xs:attribute name="name" type="xs:string" use="required">
244
+ <xs:annotation>
245
+ <xs:documentation>Allowed names are specific of each processing function</xs:documentation>
246
+ </xs:annotation>
247
+ </xs:attribute>
248
+ </xs:extension>
249
+ </xs:simpleContent>
250
+ </xs:complexType>
251
+
161
252
  <xs:complexType name="MDIType">
162
253
  <xs:simpleContent>
163
254
  <xs:extension base="xs:string">
@@ -189,6 +280,7 @@
189
280
  <xs:element name="SimpleSource" type="SimpleSourceType"/>
190
281
  <xs:element name="ComplexSource" type="ComplexSourceType"/>
191
282
  <xs:element name="AveragedSource" type="SimpleSourceType"/>
283
+ <xs:element name="NoDataFromMaskSource" type="NoDataFromMaskSourceType"/>
192
284
  <xs:element name="KernelFilteredSource" type="KernelFilteredSourceType"/>
193
285
  <xs:element name="ArraySource" type="ArraySourceType"/>
194
286
 
@@ -233,6 +325,7 @@
233
325
  <xs:enumeration value="VRTDerivedRasterBand"/>
234
326
  <xs:enumeration value="VRTRawRasterBand"/>
235
327
  <xs:enumeration value="VRTPansharpenedRasterBand"/>
328
+ <xs:enumeration value="VRTProcessedRasterBand"/>
236
329
  </xs:restriction>
237
330
  </xs:simpleType>
238
331
 
@@ -408,6 +501,21 @@
408
501
  <xs:attribute name="resampling" type="xs:string"/>
409
502
  </xs:complexType>
410
503
 
504
+ <xs:group name="NoDataFromMaskSourceElementsGroup">
505
+ <xs:sequence>
506
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
507
+ <xs:group ref="SimpleSourceElementsGroup"/>
508
+ <xs:element name="NODATA" type="DoubleOrNanType"/> <!-- NODATA and UseMaskBand are mutually exclusive -->
509
+ <xs:element name="MaskValueThreshold" type="xs:double"/>
510
+ <xs:element name="RemappedValue" type="xs:double"/>
511
+ </xs:choice>
512
+ </xs:sequence>
513
+ </xs:group>
514
+
515
+ <xs:complexType name="NoDataFromMaskSourceType">
516
+ <xs:group ref="NoDataFromMaskSourceElementsGroup"/>
517
+ </xs:complexType>
518
+
411
519
  <xs:complexType name="KernelFilteredSourceType">
412
520
  <xs:sequence>
413
521
  <xs:choice minOccurs="0" maxOccurs="unbounded">
@@ -212,6 +212,17 @@
212
212
  "maxItems": 4
213
213
  }
214
214
  },
215
+ "extent3D": {
216
+ "type": "array",
217
+ "items": {
218
+ "type": [
219
+ "null",
220
+ "number"
221
+ ],
222
+ "minItems": 6,
223
+ "maxItems": 6
224
+ }
225
+ },
215
226
  "coordinateSystem": {
216
227
  "oneOf": [
217
228
  {
@@ -254,6 +265,18 @@
254
265
  }
255
266
  ]
256
267
  }
268
+ },
269
+ "xyCoordinateResolution": {
270
+ "type": "number"
271
+ },
272
+ "zCoordinateResolution": {
273
+ "type": "number"
274
+ },
275
+ "mCoordinateResolution": {
276
+ "type": "number"
277
+ },
278
+ "coordinatePrecisionFormatSpecificOptions": {
279
+ "type": "object"
257
280
  }
258
281
  },
259
282
  "required": [
@@ -393,6 +393,9 @@
393
393
  <xs:element name="SrcRegion" type="SrcRegionType"/>
394
394
  <xs:element name="SRS" type="nonEmptyStringType"/>
395
395
  <xs:group ref="ExtentType"/>
396
+ <xs:element name="XYResolution" type="xs:double" minOccurs="0" maxOccurs="1"/>
397
+ <xs:element name="ZResolution" type="xs:double" minOccurs="0" maxOccurs="1"/>
398
+ <xs:element name="MResolution" type="xs:double" minOccurs="0" maxOccurs="1"/>
396
399
  </xs:choice>
397
400
  </xs:sequence>
398
401
  <xs:attributeGroup ref="GeometryFieldTypeAttrGroupWithoutSrc"/>