pyogrio 0.7.1__cp312-cp312-macosx_11_0_arm64.whl → 0.8.0__cp312-cp312-macosx_11_0_arm64.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.
- pyogrio/.dylibs/{libgdal.33.3.7.2.dylib → libgdal.34.3.8.5.dylib} +0 -0
- pyogrio/__init__.py +4 -0
- pyogrio/_compat.py +7 -1
- pyogrio/_err.cpython-312-darwin.so +0 -0
- pyogrio/_err.pyx +7 -3
- pyogrio/_geometry.cpython-312-darwin.so +0 -0
- pyogrio/_io.cpython-312-darwin.so +0 -0
- pyogrio/_io.pyx +900 -242
- pyogrio/_ogr.cpython-312-darwin.so +0 -0
- pyogrio/_ogr.pxd +65 -12
- pyogrio/_ogr.pyx +8 -24
- pyogrio/_version.py +3 -3
- pyogrio/_vsi.cpython-312-darwin.so +0 -0
- pyogrio/_vsi.pxd +4 -0
- pyogrio/_vsi.pyx +140 -0
- pyogrio/core.py +43 -44
- pyogrio/gdal_data/GDAL-targets-release.cmake +3 -3
- pyogrio/gdal_data/GDAL-targets.cmake +10 -6
- pyogrio/gdal_data/GDALConfigVersion.cmake +3 -3
- pyogrio/gdal_data/gdalinfo_output.schema.json +2 -0
- pyogrio/gdal_data/gdalvrt.xsd +163 -0
- pyogrio/gdal_data/ogrinfo_output.schema.json +12 -1
- pyogrio/gdal_data/vcpkg.spdx.json +22 -22
- pyogrio/gdal_data/vcpkg_abi_info.txt +27 -26
- pyogrio/geopandas.py +131 -30
- pyogrio/proj_data/ITRF2008 +2 -2
- pyogrio/proj_data/proj-config-version.cmake +2 -2
- pyogrio/proj_data/proj-config.cmake +2 -1
- pyogrio/proj_data/proj-targets.cmake +13 -13
- pyogrio/proj_data/proj.db +0 -0
- pyogrio/proj_data/proj4-targets.cmake +13 -13
- pyogrio/proj_data/vcpkg.spdx.json +19 -41
- pyogrio/proj_data/vcpkg_abi_info.txt +14 -15
- pyogrio/raw.py +438 -116
- pyogrio/tests/conftest.py +75 -6
- pyogrio/tests/test_arrow.py +841 -7
- pyogrio/tests/test_core.py +99 -7
- pyogrio/tests/test_geopandas_io.py +744 -119
- pyogrio/tests/test_path.py +22 -3
- pyogrio/tests/test_raw_io.py +276 -50
- pyogrio/util.py +41 -19
- {pyogrio-0.7.1.dist-info → pyogrio-0.8.0.dist-info}/METADATA +3 -2
- {pyogrio-0.7.1.dist-info → pyogrio-0.8.0.dist-info}/RECORD +46 -44
- {pyogrio-0.7.1.dist-info → pyogrio-0.8.0.dist-info}/WHEEL +1 -1
- pyogrio/tests/win32.py +0 -86
- {pyogrio-0.7.1.dist-info → pyogrio-0.8.0.dist-info}/LICENSE +0 -0
- {pyogrio-0.7.1.dist-info → pyogrio-0.8.0.dist-info}/top_level.txt +0 -0
pyogrio/util.py
CHANGED
|
@@ -1,32 +1,49 @@
|
|
|
1
|
+
from pathlib import Path
|
|
1
2
|
import re
|
|
2
3
|
import sys
|
|
3
4
|
from urllib.parse import urlparse
|
|
4
5
|
|
|
5
|
-
from
|
|
6
|
+
from packaging.version import Version
|
|
6
7
|
|
|
7
|
-
with GDALEnv():
|
|
8
|
-
from pyogrio._ogr import buffer_to_virtual_file
|
|
9
8
|
|
|
9
|
+
def get_vsi_path_or_buffer(path_or_buffer):
|
|
10
|
+
"""Get vsi-prefixed path or bytes buffer depending on type of path_or_buffer
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
If path_or_buffer is a bytes object, it will be returned directly and will
|
|
13
|
+
be read into an in-memory dataset when passed to one of the Cython functions.
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
If path_or_buffer is a file-like object with a read method, bytes will be
|
|
16
|
+
read from the file-like object and returned.
|
|
17
|
+
|
|
18
|
+
Otherwise, it will be converted to a string, and parsed to prefix with
|
|
19
|
+
appropriate GDAL /vsi*/ prefixes.
|
|
20
|
+
|
|
21
|
+
Parameters
|
|
22
|
+
----------
|
|
23
|
+
path_or_buffer : str, pathlib.Path, bytes, or file-like
|
|
24
|
+
|
|
25
|
+
Returns
|
|
26
|
+
-------
|
|
27
|
+
str or bytes
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
# force path objects to string to specifically ignore their read method
|
|
31
|
+
if isinstance(path_or_buffer, Path):
|
|
32
|
+
return vsi_path(str(path_or_buffer))
|
|
15
33
|
|
|
16
|
-
buffer = None
|
|
17
34
|
if isinstance(path_or_buffer, bytes):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ext = ".zip"
|
|
23
|
-
path = buffer_to_virtual_file(path_or_buffer, ext=ext)
|
|
24
|
-
if is_zipped:
|
|
25
|
-
path = "/vsizip/" + path
|
|
26
|
-
else:
|
|
27
|
-
path = vsi_path(str(path_or_buffer))
|
|
35
|
+
return path_or_buffer
|
|
36
|
+
|
|
37
|
+
if hasattr(path_or_buffer, "read"):
|
|
38
|
+
bytes_buffer = path_or_buffer.read()
|
|
28
39
|
|
|
29
|
-
|
|
40
|
+
# rewind buffer if possible so that subsequent operations do not need to rewind
|
|
41
|
+
if hasattr(path_or_buffer, "seek"):
|
|
42
|
+
path_or_buffer.seek(0)
|
|
43
|
+
|
|
44
|
+
return bytes_buffer
|
|
45
|
+
|
|
46
|
+
return vsi_path(str(path_or_buffer))
|
|
30
47
|
|
|
31
48
|
|
|
32
49
|
def vsi_path(path: str) -> str:
|
|
@@ -35,6 +52,11 @@ def vsi_path(path: str) -> str:
|
|
|
35
52
|
|
|
36
53
|
"""
|
|
37
54
|
|
|
55
|
+
if "/vsimem/" in path:
|
|
56
|
+
raise ValueError(
|
|
57
|
+
"path cannot contain /vsimem/ directly; to use an in-memory dataset a bytes object must be passed instead"
|
|
58
|
+
)
|
|
59
|
+
|
|
38
60
|
# path is already in GDAL format
|
|
39
61
|
if path.startswith("/vsi"):
|
|
40
62
|
return path
|
|
@@ -187,7 +209,7 @@ def _mask_to_wkb(mask):
|
|
|
187
209
|
try:
|
|
188
210
|
import shapely
|
|
189
211
|
|
|
190
|
-
if
|
|
212
|
+
if Version(shapely.__version__) < Version("2.0.0"):
|
|
191
213
|
shapely = None
|
|
192
214
|
except ImportError:
|
|
193
215
|
shapely = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyogrio
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: Vectorized spatial vector file format I/O using GDAL/OGR
|
|
5
5
|
Home-page: https://github.com/geopandas/pyogrio
|
|
6
6
|
Author: Brendan C. Ward
|
|
@@ -11,6 +11,7 @@ Description-Content-Type: text/markdown
|
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Requires-Dist: certifi
|
|
13
13
|
Requires-Dist: numpy
|
|
14
|
+
Requires-Dist: packaging
|
|
14
15
|
Provides-Extra: benchmark
|
|
15
16
|
Requires-Dist: pytest-benchmark ; extra == 'benchmark'
|
|
16
17
|
Provides-Extra: dev
|
|
@@ -55,7 +56,7 @@ substantial change. Please see [CHANGES](CHANGES.md).
|
|
|
55
56
|
|
|
56
57
|
## Requirements
|
|
57
58
|
|
|
58
|
-
Supports Python 3.8 - 3.11 and GDAL 3.4.x - 3.
|
|
59
|
+
Supports Python 3.8 - 3.11 and GDAL 3.4.x - 3.8.x.
|
|
59
60
|
|
|
60
61
|
Reading to GeoDataFrames requires `geopandas>=0.12` with `shapely>=2`.
|
|
61
62
|
|
|
@@ -1,58 +1,60 @@
|
|
|
1
|
-
pyogrio/_err.pyx,sha256=
|
|
2
|
-
pyogrio/
|
|
3
|
-
pyogrio/
|
|
4
|
-
pyogrio/
|
|
5
|
-
pyogrio/
|
|
1
|
+
pyogrio/_err.pyx,sha256=aaBjjrqMtVHde51WwCZ7PBO348LTMPIshTOr4m1JVb4,6127
|
|
2
|
+
pyogrio/_vsi.pyx,sha256=7mlZ_bEZo51PIIhCyTN0euga1SZRnWVVo3yzwzFLvp0,4435
|
|
3
|
+
pyogrio/_version.py,sha256=JLC7tS3KQ_YW2wynkNxWJM8ggqmm9Wu2klla-uWJZS8,497
|
|
4
|
+
pyogrio/raw.py,sha256=XJfbWXCbc584WuXbr4Vj8S40crS3NeoEgknpbimmtDM,33455
|
|
5
|
+
pyogrio/_ogr.pxd,sha256=TOaqmSqjjBo2isNZ-k4lxwgRFa1rISG5yuIMlP-o4Eg,17144
|
|
6
|
+
pyogrio/util.py,sha256=KmgwHb5GVRuW9bzy7YSI5L7ZKQoEgk4eOqKuwwVoN3w,5723
|
|
6
7
|
pyogrio/_io.pxd,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
8
|
pyogrio/_geometry.pxd,sha256=glEFGgam8GVAnJr8q9NQ4zLdFYjIRd9Hn7LoNP8MOt8,147
|
|
8
|
-
pyogrio/__init__.py,sha256=
|
|
9
|
-
pyogrio/
|
|
10
|
-
pyogrio/
|
|
9
|
+
pyogrio/__init__.py,sha256=j9Q9e6E7RTqZthTXCCty-P-ObGMtVdTJXOUuU8kPg_I,1141
|
|
10
|
+
pyogrio/_vsi.cpython-312-darwin.so,sha256=k_xWBowcWv_U71pHPYy4aOjK3A_s6juJaWzynPHWOUk,97424
|
|
11
|
+
pyogrio/core.py,sha256=5lNFCWJWXLCV-FeXnbgLK7fN3zc3QfeputubUSaNnQU,11104
|
|
12
|
+
pyogrio/geopandas.py,sha256=ldlw9LIQ_igJK0iK9-CnujKQKZIufyBpwBKcLSY_8MY,28427
|
|
11
13
|
pyogrio/arrow_bridge.h,sha256=cmDLGfuENF3dE1MwByyfkZ9Yey5RsHo2Xg_vYujlWew,3573
|
|
12
|
-
pyogrio/_ogr.cpython-312-darwin.so,sha256=
|
|
14
|
+
pyogrio/_ogr.cpython-312-darwin.so,sha256=ZVYWGx2GpW3TNafnhoFlmr9ynVRFoXYQw8m8YXphpF0,179408
|
|
13
15
|
pyogrio/_geometry.pyx,sha256=z4RJdJyMZvFShX3B2dBErMglQFDWUkUqqlOFTaEOBRg,4071
|
|
14
|
-
pyogrio/_io.cpython-312-darwin.so,sha256=
|
|
15
|
-
pyogrio/_io.pyx,sha256=
|
|
16
|
-
pyogrio/_ogr.pyx,sha256
|
|
16
|
+
pyogrio/_io.cpython-312-darwin.so,sha256=ilOCIV5vFTPHysSiCZNGBM9MI61BXW2DDZE2Yla10OU,623232
|
|
17
|
+
pyogrio/_io.pyx,sha256=RAABGlL52Tii8QhQLLhFEhuhztnv25El4WVdAUjyX_U,91159
|
|
18
|
+
pyogrio/_ogr.pyx,sha256=z6PknXL3G3wclt80PVT4fGOzJgc-iInhxibPC15PnRQ,9667
|
|
17
19
|
pyogrio/errors.py,sha256=otUCS22V7jd-4b5o49YLTqmHzzHlr3XrEIyoF2qDSOA,666
|
|
18
|
-
pyogrio/_geometry.cpython-312-darwin.so,sha256=
|
|
19
|
-
pyogrio/_compat.py,sha256=
|
|
20
|
+
pyogrio/_geometry.cpython-312-darwin.so,sha256=_Cy_rBDUaIIia0VUZ9WlOBXjcfFSPljxMBpNfVPbgrQ,117408
|
|
21
|
+
pyogrio/_compat.py,sha256=cXIol91_OZtHerTwQVXN0y3dVoAruIyO8AoBjanHgik,1008
|
|
22
|
+
pyogrio/_vsi.pxd,sha256=vLHYsuPH-mdOLj0mqVwbjSU7U8750SFtuMPxl8FbLJ4,206
|
|
20
23
|
pyogrio/_env.py,sha256=jf-nUbLqQka-XGKijLh4Oh0Lur_uj7XyvQVSQ0jXZ_0,1531
|
|
21
24
|
pyogrio/_err.pxd,sha256=DKe5pdq8CqnaW3U_w9X56iBqdylIvOaRk-sExSXA3WU,166
|
|
22
|
-
pyogrio/_err.cpython-312-darwin.so,sha256=
|
|
23
|
-
pyogrio/proj_data/vcpkg.spdx.json,sha256=
|
|
24
|
-
pyogrio/proj_data/proj.db,sha256=
|
|
25
|
+
pyogrio/_err.cpython-312-darwin.so,sha256=oOveH3FDQAwlbyH4Qzt3goMjuj0JootNjfrF1N0xuuE,141024
|
|
26
|
+
pyogrio/proj_data/vcpkg.spdx.json,sha256=NcJdG8XAGyg7IIZH2S0OrNRwOtYAY3yrhiXpdXWZpBo,6621
|
|
27
|
+
pyogrio/proj_data/proj.db,sha256=7l14rro5yVAdWqT2RfsLNAq_Kki3olYNb2NGFTJRbi0,9105408
|
|
25
28
|
pyogrio/proj_data/nad83,sha256=mmJgyGgKvlIWyo_phZmPq6vBIbADKHmoIddcrjQR3JY,16593
|
|
26
29
|
pyogrio/proj_data/CH,sha256=bFPqQKLGAyW6bGuaK5wUO9FlZxw4gg7NjyPKq0omSrU,1097
|
|
27
30
|
pyogrio/proj_data/world,sha256=8nHNPlbHdZ0vz7u9OYcCZOuBBkFVcTwE_JLq3TCt60g,7079
|
|
28
31
|
pyogrio/proj_data/usage,sha256=JhaTY8J-caRMup1wOyK70TwZGrXi0GErPdNcc1yXH-Y,120
|
|
29
|
-
pyogrio/proj_data/vcpkg_abi_info.txt,sha256=
|
|
32
|
+
pyogrio/proj_data/vcpkg_abi_info.txt,sha256=rjFeA-wgevKLBDxBTL6u729GdOSV66vO2xBQ1B7VAEc,2048
|
|
30
33
|
pyogrio/proj_data/proj.ini,sha256=SvO-E5l27NOlzFZWPKMhu1ASFjwLid8IB773in3StB4,2107
|
|
31
34
|
pyogrio/proj_data/nad.lst,sha256=Gijthy_RVQ9b97Wl5b_F51ALX5TJdFuEodFWsyA5kow,6385
|
|
32
35
|
pyogrio/proj_data/ITRF2000,sha256=UiXDszZ6NwIeY5z9W9FSHSvV0Ay8R0zWs7OCdhWk_nI,2099
|
|
33
|
-
pyogrio/proj_data/ITRF2008,sha256=
|
|
34
|
-
pyogrio/proj_data/proj-config-version.cmake,sha256=
|
|
36
|
+
pyogrio/proj_data/ITRF2008,sha256=3GmF1XIeLh0Y-smW3uXeyQJE7z4gw49yIF4y2IQq8uI,5682
|
|
37
|
+
pyogrio/proj_data/proj-config-version.cmake,sha256=WeGnIEWKfFrDyESFOZg_bweQMR0RIxt7WrulZAp9eYw,1789
|
|
35
38
|
pyogrio/proj_data/triangulation.schema.json,sha256=sVKCZmZ9Tz6HByx043CycTUQFRWpASolKH_PMSzqF5o,8403
|
|
36
|
-
pyogrio/proj_data/proj-targets.cmake,sha256=
|
|
39
|
+
pyogrio/proj_data/proj-targets.cmake,sha256=o3_tj2DnH_K_22M-ZIkQtuKsu2OKs517PqEWpTaht60,4502
|
|
37
40
|
pyogrio/proj_data/deformation_model.schema.json,sha256=ugxZERFyB6k2_HOMHjHaABtFtRGTdzzgxnQhQ_NyuZ0,17671
|
|
38
|
-
pyogrio/proj_data/proj-config.cmake,sha256=
|
|
41
|
+
pyogrio/proj_data/proj-config.cmake,sha256=txJ2KowhyHvMWSyyOFNM98DMhim3KarXXUO4rQm5veY,2497
|
|
39
42
|
pyogrio/proj_data/nad27,sha256=C8IxkiRhrHWJIsanJR6W1-U-ZWYIsbTwa3hI-o_CVSA,19535
|
|
40
43
|
pyogrio/proj_data/copyright,sha256=ao8weT6HfTLj-IuXLwlwoFGjtaJs0FfTmTy1HiHEMxk,1784
|
|
41
44
|
pyogrio/proj_data/projjson.schema.json,sha256=HqlM_U1GCI-za_NtPEkqqSABIS62mngA5TOmEQP21W4,38312
|
|
42
|
-
pyogrio/proj_data/proj4-targets.cmake,sha256=
|
|
45
|
+
pyogrio/proj_data/proj4-targets.cmake,sha256=BSlH0ma-qJtGv0csRI6HY-CfcwY-Jz9BM8kWujgVqP0,4507
|
|
43
46
|
pyogrio/proj_data/GL27,sha256=hTdeYxXW9kTkV32t88XxV1KK0VtxXJmyh73asj1EGT0,728
|
|
44
47
|
pyogrio/proj_data/proj4-targets-release.cmake,sha256=5AMWErMkyX8NvT_r6MD_mrisCRtS-uOAk_odUdeIqRw,826
|
|
45
48
|
pyogrio/proj_data/ITRF2014,sha256=KYUwTjflfDYqYTl7YyZ9psYMN2HT5GOhH0xr0BPC19U,3489
|
|
46
49
|
pyogrio/proj_data/other.extra,sha256=we90wKmz4fQqV2wVvENmbBNbfpNh21cno1MgTaJ5zLs,3915
|
|
47
50
|
pyogrio/proj_data/proj-targets-release.cmake,sha256=EUGwmwyqLMarJjwhp5G63iw2U2s2nEln64t-eEYH3Q8,821
|
|
48
|
-
pyogrio/tests/conftest.py,sha256=
|
|
49
|
-
pyogrio/tests/test_raw_io.py,sha256=
|
|
50
|
-
pyogrio/tests/test_core.py,sha256=
|
|
51
|
+
pyogrio/tests/conftest.py,sha256=xiQZI74WF4mFaM4E6ypOd6pqnUwpaSv5r4MQ4_NlpFs,5815
|
|
52
|
+
pyogrio/tests/test_raw_io.py,sha256=nuxxyB2uBHumBn9gi62bUx3q6ZXMh11wP0qBa2gog4o,47101
|
|
53
|
+
pyogrio/tests/test_core.py,sha256=bGDt5LMcLrl1av1GlUtyOKxEz6usVmDRI6wTQxfZp8Q,19218
|
|
51
54
|
pyogrio/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
|
-
pyogrio/tests/
|
|
53
|
-
pyogrio/tests/
|
|
54
|
-
pyogrio/tests/
|
|
55
|
-
pyogrio/tests/test_arrow.py,sha256=lFEvDeAH7EoTYMzzQ6t7vwHL8C1fcs3nF4g9GhvOve4,6947
|
|
55
|
+
pyogrio/tests/test_geopandas_io.py,sha256=QGa9I0Oc1CbXRD7F9oqmfMOmpSln9D-MaELtLV4QbRk,71888
|
|
56
|
+
pyogrio/tests/test_path.py,sha256=2e-xE40Z8D3v5Qe2FEbrRDiO-7JTSplSWKd-DBDP7eQ,11324
|
|
57
|
+
pyogrio/tests/test_arrow.py,sha256=cudcAr2LVg_ZJQhxTNI0eerpBpkIyQA336-sD6eIdug,32561
|
|
56
58
|
pyogrio/tests/fixtures/test_multisurface.gpkg,sha256=sc6yaD6RxjqCGIT0ijBXgxEWYNMZNPLOetKvD5njGYY,98304
|
|
57
59
|
pyogrio/tests/fixtures/test_ogr_types_list.geojson,sha256=Siiwb-zoajKMJoNun2n-cg9784DLZqm_wCMgFpxsytA,845
|
|
58
60
|
pyogrio/tests/fixtures/test_fgdb.gdb.zip,sha256=c7sFaFVfxEfn_R1NxpijRgOIxa2u1pFBSL9h_4PNpHI,101524
|
|
@@ -67,7 +69,7 @@ pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.cpg,sha256=CfwxMH
|
|
|
67
69
|
pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.shp,sha256=CONBYG6DkeRYw_CN6zEt5mS1a_rjdgZMWqCu5mgaX1U,180924
|
|
68
70
|
pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.dbf,sha256=0q4cma3PjkWGpbEsY5ZyA1-i8_Rp5yVZR94AQBw-1-E,48869
|
|
69
71
|
pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.prj,sha256=mKrz0cDsrfGkJKRTbeJhw9r043NpfLhsQMQ7mJ2vUus,143
|
|
70
|
-
pyogrio/.dylibs/libgdal.
|
|
72
|
+
pyogrio/.dylibs/libgdal.34.3.8.5.dylib,sha256=gmxZBZyK1T645xWK_em9hPGUYh2XMjNyU0IPFV4qS7I,28589440
|
|
71
73
|
pyogrio/gdal_data/gml_registry.xml,sha256=2rVxsqdOS23ieg_eYtNIhxQcpFbRHKrN11oWay3lp0M,6643
|
|
72
74
|
pyogrio/gdal_data/grib2_table_4_2_2_5.csv,sha256=DMm7VDNZcLAKXwFA4SIgfExBb1d8iGFNMKpOoYmwY5U,9513
|
|
73
75
|
pyogrio/gdal_data/grib2_table_4_2_10_191.csv,sha256=D1EVM9Eyzl1STFGdSwy-OjkzyVNqUJc4JvToQgIcscg,9634
|
|
@@ -99,7 +101,7 @@ pyogrio/gdal_data/bag_template.xml,sha256=2veBb2hsNbUexmyQ_GrtvxLb75fyj5-ulzE5L5
|
|
|
99
101
|
pyogrio/gdal_data/inspire_cp_CadastralZoning.gfs,sha256=e1GC-8pLjZ6gc-OY0IUDd5LL2URNHcazWW-i7QMLTPo,4812
|
|
100
102
|
pyogrio/gdal_data/jpfgdgml_WA.gfs,sha256=GBCluVns9HsNGQMnEb4VXaYYi-cNgIo9LDYMCINVlnM,1497
|
|
101
103
|
pyogrio/gdal_data/grib2_table_4_2_2_3.csv,sha256=NhDBdFAucOn0CBT4N8txwupv58jwnpCY6ChnhGNjkfo,10634
|
|
102
|
-
pyogrio/gdal_data/vcpkg.spdx.json,sha256=
|
|
104
|
+
pyogrio/gdal_data/vcpkg.spdx.json,sha256=BF8Dh2vFa5WgFDv-Rq7Qo7wFhyUEKb-r8m30ifDoaFw,8852
|
|
103
105
|
pyogrio/gdal_data/grib2_table_4_2_0_1.csv,sha256=Islx1uwOrtFhUgZcq0urhO9eG1bFDWjFieujFdQJq3M,16505
|
|
104
106
|
pyogrio/gdal_data/grib2_table_4_2_20_1.csv,sha256=PssQWXb7slKE9Lj3j6-7bzaT_MbaNYvW1Ye9svtdHRQ,9851
|
|
105
107
|
pyogrio/gdal_data/grib2_table_4_2_4_5.csv,sha256=UH1R3eJHZQ9Xejfrgr9km-ko28squEkiEdtdfqN9boE,9495
|
|
@@ -109,7 +111,7 @@ pyogrio/gdal_data/grib2_table_4_2_0_0.csv,sha256=7lcXiYZHBVvyTtJuzN7_N7bcCTaT98t
|
|
|
109
111
|
pyogrio/gdal_data/seed_2d.dgn,sha256=3YRl8YVp2SiYCengliEV02XQpW3gITk5UqXnoKILUnw,9216
|
|
110
112
|
pyogrio/gdal_data/jpfgdgml_RailCL.gfs,sha256=WfcPfaAxyRwH0hGYR8cWo9KzkYaeVjdMpWdCj88L2Lc,1507
|
|
111
113
|
pyogrio/gdal_data/jpfgdgml_WStrA.gfs,sha256=ul-hFP9A9jVcIW4xKShR6C0yjXAq8HEPUkk8oLyH27A,1503
|
|
112
|
-
pyogrio/gdal_data/GDAL-targets.cmake,sha256
|
|
114
|
+
pyogrio/gdal_data/GDAL-targets.cmake,sha256=TImuOOi-8MdxP7NIk14csJgf371mO_C40JflC10OjSQ,4035
|
|
113
115
|
pyogrio/gdal_data/grib2_table_4_2_2_0.csv,sha256=VmMPvFRcEifRi8w6eXg9Z3i_JcxhnqAcdxM4ymWV1E0,12666
|
|
114
116
|
pyogrio/gdal_data/grib2_table_4_2_0_2.csv,sha256=Hcr_tN5FR17RXjlBWHh1N-fHS7opzUxThapntte7Bd4,10892
|
|
115
117
|
pyogrio/gdal_data/jpfgdgml_SBAPt.gfs,sha256=6SXkKWcv4sOfsZUtRPBx3kSg2H8JgSLhK_fxaHhOxuE,1375
|
|
@@ -153,7 +155,7 @@ pyogrio/gdal_data/nitf_spec.xml,sha256=KFFbjkzMZ_q8QbK4VmHQpbFZqryOrADtB6_IdXZsY
|
|
|
153
155
|
pyogrio/gdal_data/tms_MapML_CBMTILE.json,sha256=tZaccbdXtciaiOyOkESWhCT1lGtiXtTwfSvgmNwm14A,7792
|
|
154
156
|
pyogrio/gdal_data/header.dxf,sha256=9GpEP0k-Q3B7x5hbnyhEViwk_qV21xVw_yr-kTF0Sd4,6572
|
|
155
157
|
pyogrio/gdal_data/grib2_table_4_2_1_1.csv,sha256=3FyIbZA43DVDSURtfTyKmbqw2bCyvB9K5ObuED1fIiU,9655
|
|
156
|
-
pyogrio/gdal_data/GDAL-targets-release.cmake,sha256=
|
|
158
|
+
pyogrio/gdal_data/GDAL-targets-release.cmake,sha256=AUhj3BxcrjkMGwdC4imDtcY5cD7Hp84yZyBwryQEXLY,847
|
|
157
159
|
pyogrio/gdal_data/grib2_table_4_2_3_3.csv,sha256=I4cT-Ad19soux0yIC8cQw-UPDHA8slwLynqEtOb-_PQ,784
|
|
158
160
|
pyogrio/gdal_data/grib2_table_4_2_3_2.csv,sha256=FWUq3hX244-kBMJor_98vRY7ujIaf_ZF6SzLHOv5X8M,3833
|
|
159
161
|
pyogrio/gdal_data/grib2_table_4_2_local_Canada.csv,sha256=m8GRxbypdPQvvdSIA38HTuHKu6gO_i2lC4_SVMDcv_U,333
|
|
@@ -163,7 +165,7 @@ pyogrio/gdal_data/grib2_table_4_2_local_NCEP.csv,sha256=3u547LbwYlq1zC48OFIOqpIZ
|
|
|
163
165
|
pyogrio/gdal_data/grib2_table_4_2_0_13.csv,sha256=FiAWXbiJem9ePbrtXLu7chBm2H-PhZ39DNI_c7CXE3I,9596
|
|
164
166
|
pyogrio/gdal_data/ruian_vf_v1.gfs,sha256=Tl4_j6ZZgk6Do3HDCmPLrMyvDcI0KZZ7cpIvTMh6FBU,67252
|
|
165
167
|
pyogrio/gdal_data/jpfgdgml_ElevPt.gfs,sha256=9MRSGeU4EV1qAZ6Q2JEBsINXQXjxtlLg7JFgnFH3bIM,1500
|
|
166
|
-
pyogrio/gdal_data/vcpkg_abi_info.txt,sha256=
|
|
168
|
+
pyogrio/gdal_data/vcpkg_abi_info.txt,sha256=kTuX51cRm8mBx7HkAtLNPE1apwgBsxlWyPRhWHqknyM,3186
|
|
167
169
|
pyogrio/gdal_data/grib2_table_4_2_0_190.csv,sha256=xF_PY2JAidyUTzFRSakOV3SITD5OD2LgF-2WT_vG0bc,9507
|
|
168
170
|
pyogrio/gdal_data/grib2_table_4_2_10_0.csv,sha256=9P_7VCO55ZdL-Acj5lwY6ECnruzcgMAb7bmeQYIG7-c,11822
|
|
169
171
|
pyogrio/gdal_data/grib2_table_4_2_10_1.csv,sha256=lWT-VZLPKNdqWmFE4TBRVncsUsqRkxCzcIIk7TNuOGk,9625
|
|
@@ -174,10 +176,10 @@ pyogrio/gdal_data/jpfgdgml_RdCompt.gfs,sha256=e19AWCj_6GE7AR8sUE8WlRUZuOkDsfPgVr
|
|
|
174
176
|
pyogrio/gdal_data/gmlasconf.xml,sha256=IAk50u-H3k34Dm6_MJCMYOllTgv8a3nHrk6oqUR9t24,7432
|
|
175
177
|
pyogrio/gdal_data/s57expectedinput.csv,sha256=1bCaXEJI8-sJBqTjrGjXOAyG-BnXDerjZi5zbwWXvGw,20885
|
|
176
178
|
pyogrio/gdal_data/grib2_table_4_2_0_21.csv,sha256=30k7pyX-dRE2KdZzZ4lE4tNliimuRzYJevqXoRU9UvM,10262
|
|
177
|
-
pyogrio/gdal_data/gdalinfo_output.schema.json,sha256=
|
|
179
|
+
pyogrio/gdal_data/gdalinfo_output.schema.json,sha256=RcdGS9NTuLwqr2KqfEWlW5aIVWyKfPq24zicQJwQP8I,8233
|
|
178
180
|
pyogrio/gdal_data/grib2_table_4_2_local_MRMS.csv,sha256=H_u9WF10JNULZrrg7fE4D0q-tFG0BT28Z8w3umpVDlM,15587
|
|
179
181
|
pyogrio/gdal_data/grib2_table_4_2_10_3.csv,sha256=LxrwVe-pgQTuqDSTGSarqfDaTqBED-L9uohVEyTeKIY,9989
|
|
180
|
-
pyogrio/gdal_data/ogrinfo_output.schema.json,sha256=
|
|
182
|
+
pyogrio/gdal_data/ogrinfo_output.schema.json,sha256=qygAli3uNVaoDR_1ohJVQvYqiXpwWAAiDpWzKzE5x8U,11127
|
|
181
183
|
pyogrio/gdal_data/grib2_table_4_2_10_2.csv,sha256=OitdURbBcwCaOEMxzAy0kugXFRiYn2TdB9oBIvSmTq4,10112
|
|
182
184
|
pyogrio/gdal_data/grib2_table_versions.csv,sha256=kmlTzSvGEG0hhPJwT9se8LVIVz61oufFbH-90NhFh_U,38
|
|
183
185
|
pyogrio/gdal_data/jpfgdgml_RdSgmtA.gfs,sha256=DrQoc9ubkSfkE8QL1Uvoq-EWklYvSIGeTw8cuJtZuZU,1644
|
|
@@ -188,7 +190,7 @@ pyogrio/gdal_data/stateplane.csv,sha256=MMYhCHKwpMENQHOajLa-2mMKfvPrTLB6cSjibo6D
|
|
|
188
190
|
pyogrio/gdal_data/grib2_table_4_2_0_20.csv,sha256=IUriHiSfaj_jzgaTT_lWVCZt-Uo_KSTinbaYDsQK8eY,12291
|
|
189
191
|
pyogrio/gdal_data/template_tiles.mapml,sha256=sb1swUtdRcWuDxRt2-8j07jZWr6oJQ_dU7Ep7fuPMt0,1947
|
|
190
192
|
pyogrio/gdal_data/grib2_table_4_2_0_18.csv,sha256=UGnoCo2YiZQj9wJJE4oajSegwv7jMxebvWU69-TeVfY,10224
|
|
191
|
-
pyogrio/gdal_data/gdalvrt.xsd,sha256=
|
|
193
|
+
pyogrio/gdal_data/gdalvrt.xsd,sha256=S0NVXifFzG4kJUW-XdyFzYLnwi-7YUQev8DI6Xx7av4,34063
|
|
192
194
|
pyogrio/gdal_data/jpfgdgml_RdMgtBdry.gfs,sha256=icSd5TDjjersUSthlHjPande-IFpCVAEJWWReCSo0vY,1386
|
|
193
195
|
pyogrio/gdal_data/grib2_process.csv,sha256=5t64qqEuz435_VQfKj6jZrPpi9GUJPL-XS32V9VECg8,4926
|
|
194
196
|
pyogrio/gdal_data/grib2_center.csv,sha256=9qwbZ4W8m8-6dZG6LFskca3rCgl42bMLfzg0yQI_QjM,4171
|
|
@@ -209,7 +211,7 @@ pyogrio/gdal_data/nitf_spec.xsd,sha256=60ccsb6YEuoJkrGcBxQxafXAGTSG5vqGdzMAATaJ2
|
|
|
209
211
|
pyogrio/gdal_data/grib2_subcenter.csv,sha256=H1NnC7PusHTUbS3cFTfnwFyHskqvdgJNApd1FDUClFs,2328
|
|
210
212
|
pyogrio/gdal_data/copyright,sha256=Ha40aOgdANpW4pNvdNM7izrQnXJkN_Gc4gml2r6kH3c,21841
|
|
211
213
|
pyogrio/gdal_data/s57agencies.csv,sha256=IS73IR7YPEOCulni7kQ3pzMXE7KYM77nZFwHMcq8QnA,13304
|
|
212
|
-
pyogrio/gdal_data/GDALConfigVersion.cmake,sha256=
|
|
214
|
+
pyogrio/gdal_data/GDALConfigVersion.cmake,sha256=PEsPPVJv9vVz2EGSodBAgfGgt-Tzk6o6Zs-TNGQqoX0,3675
|
|
213
215
|
pyogrio/gdal_data/ozi_ellips.csv,sha256=DINjv97cF4fVNGPXBeLhzo-9_NSdHjx3j11CgpgNdcY,1349
|
|
214
216
|
pyogrio/gdal_data/jpfgdgml_WStrL.gfs,sha256=6_4tnRheyIf-c3JQwKYxSHA4i-I7ORkf3InxygGqyJA,1505
|
|
215
217
|
pyogrio/gdal_data/GDALLogoBW.svg,sha256=qsnasz1HnguDK4vXyeVRDcvvNKfGzJrqlrviqrUWHFM,13022
|
|
@@ -229,8 +231,8 @@ pyogrio/gdal_data/jpfgdgml_SBBdry.gfs,sha256=JDySSKChX3q0KetcBBC62Bvsr59qj8aq7_L
|
|
|
229
231
|
pyogrio/gdal_data/netcdf_config.xsd,sha256=O1eIEmlSx3y7N1hIMtfb5GzD_F7hunQdlKI1pXpi3v4,7491
|
|
230
232
|
pyogrio/gdal_data/vdv452.xml,sha256=q1KF0BR-dDEIomwkRLhTksR4f_maMumayx4hQ2wju8k,25816
|
|
231
233
|
pyogrio/gdal_data/ecw_cs.wkt,sha256=1DGJPrRGsmXSBu6ohj3NzOO2XHwqcH2qtY6J5YOvAz4,364032
|
|
232
|
-
pyogrio-0.
|
|
233
|
-
pyogrio-0.
|
|
234
|
-
pyogrio-0.
|
|
235
|
-
pyogrio-0.
|
|
236
|
-
pyogrio-0.
|
|
234
|
+
pyogrio-0.8.0.dist-info/RECORD,,
|
|
235
|
+
pyogrio-0.8.0.dist-info/LICENSE,sha256=e3KtZsP5KtU41F_46jNd4Gfba2PwF2bfVumh9KT6o7Y,1102
|
|
236
|
+
pyogrio-0.8.0.dist-info/WHEEL,sha256=Vo9YTsjXxZ5SWdH4n69oS5jU3YTIi3eHk0n-aUcTtlw,110
|
|
237
|
+
pyogrio-0.8.0.dist-info/top_level.txt,sha256=DUBAVaLxa9r0nHHskG8tHdP1P3zt6TYYPRiDBlEUc7Y,8
|
|
238
|
+
pyogrio-0.8.0.dist-info/METADATA,sha256=RKzB-3PbWmDULJd8laZlFVhTJ2NLih0QSrRo1N0uwuQ,3807
|
pyogrio/tests/win32.py
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"""Run pytest tests manually on Windows due to import errors
|
|
2
|
-
"""
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
import platform
|
|
5
|
-
from tempfile import TemporaryDirectory
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
data_dir = Path(__file__).parent.resolve() / "fixtures"
|
|
9
|
-
|
|
10
|
-
if platform.system() == "Windows":
|
|
11
|
-
|
|
12
|
-
naturalearth_lowres = data_dir / Path("naturalearth_lowres/naturalearth_lowres.shp")
|
|
13
|
-
test_fgdb_vsi = f"/vsizip/{data_dir}/test_fgdb.gdb.zip"
|
|
14
|
-
|
|
15
|
-
from pyogrio.tests.test_core import test_read_info
|
|
16
|
-
|
|
17
|
-
try:
|
|
18
|
-
test_read_info(naturalearth_lowres)
|
|
19
|
-
except Exception as ex:
|
|
20
|
-
print(ex)
|
|
21
|
-
|
|
22
|
-
from pyogrio.tests.test_raw_io import (
|
|
23
|
-
test_read,
|
|
24
|
-
test_read_no_geometry,
|
|
25
|
-
test_read_columns,
|
|
26
|
-
test_read_skip_features,
|
|
27
|
-
test_read_max_features,
|
|
28
|
-
test_read_where,
|
|
29
|
-
test_read_where_invalid,
|
|
30
|
-
test_write,
|
|
31
|
-
test_write_gpkg,
|
|
32
|
-
test_write_geojson,
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
try:
|
|
36
|
-
test_read(naturalearth_lowres)
|
|
37
|
-
except Exception as ex:
|
|
38
|
-
print(ex)
|
|
39
|
-
|
|
40
|
-
try:
|
|
41
|
-
test_read_no_geometry(naturalearth_lowres)
|
|
42
|
-
except Exception as ex:
|
|
43
|
-
print(ex)
|
|
44
|
-
|
|
45
|
-
try:
|
|
46
|
-
test_read_columns(naturalearth_lowres)
|
|
47
|
-
except Exception as ex:
|
|
48
|
-
print(ex)
|
|
49
|
-
|
|
50
|
-
try:
|
|
51
|
-
test_read_skip_features(naturalearth_lowres)
|
|
52
|
-
except Exception as ex:
|
|
53
|
-
print(ex)
|
|
54
|
-
|
|
55
|
-
try:
|
|
56
|
-
test_read_max_features(naturalearth_lowres)
|
|
57
|
-
except Exception as ex:
|
|
58
|
-
print(ex)
|
|
59
|
-
|
|
60
|
-
try:
|
|
61
|
-
test_read_where(naturalearth_lowres)
|
|
62
|
-
except Exception as ex:
|
|
63
|
-
print(ex)
|
|
64
|
-
|
|
65
|
-
try:
|
|
66
|
-
test_read_where_invalid(naturalearth_lowres)
|
|
67
|
-
except Exception as ex:
|
|
68
|
-
print(ex)
|
|
69
|
-
|
|
70
|
-
with TemporaryDirectory() as tmpdir:
|
|
71
|
-
try:
|
|
72
|
-
test_write(tmpdir, naturalearth_lowres)
|
|
73
|
-
except Exception as ex:
|
|
74
|
-
print(ex)
|
|
75
|
-
|
|
76
|
-
with TemporaryDirectory() as tmpdir:
|
|
77
|
-
try:
|
|
78
|
-
test_write_gpkg(tmpdir, naturalearth_lowres)
|
|
79
|
-
except Exception as ex:
|
|
80
|
-
print(ex)
|
|
81
|
-
|
|
82
|
-
with TemporaryDirectory() as tmpdir:
|
|
83
|
-
try:
|
|
84
|
-
test_write_geojson(tmpdir, naturalearth_lowres)
|
|
85
|
-
except Exception as ex:
|
|
86
|
-
print(ex)
|
|
File without changes
|
|
File without changes
|