pyogrio 0.7.2__cp39-cp39-manylinux_2_28_aarch64.whl → 0.9.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.
- pyogrio/__init__.py +4 -0
- pyogrio/_compat.py +6 -1
- pyogrio/_err.cpython-39-aarch64-linux-gnu.so +0 -0
- pyogrio/_err.pyx +7 -3
- pyogrio/_geometry.cpython-39-aarch64-linux-gnu.so +0 -0
- pyogrio/_io.cpython-39-aarch64-linux-gnu.so +0 -0
- pyogrio/_io.pyx +904 -242
- pyogrio/_ogr.cpython-39-aarch64-linux-gnu.so +0 -0
- pyogrio/_ogr.pxd +69 -13
- pyogrio/_ogr.pyx +8 -24
- pyogrio/_version.py +3 -3
- pyogrio/_vsi.cpython-39-aarch64-linux-gnu.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 +26 -26
- pyogrio/gdal_data/vcpkg_abi_info.txt +27 -26
- pyogrio/geopandas.py +140 -34
- 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 +20 -42
- pyogrio/proj_data/vcpkg_abi_info.txt +14 -15
- pyogrio/raw.py +438 -116
- pyogrio/tests/conftest.py +75 -6
- pyogrio/tests/fixtures/poly_not_enough_points.shp.zip +0 -0
- pyogrio/tests/test_arrow.py +841 -7
- pyogrio/tests/test_core.py +99 -7
- pyogrio/tests/test_geopandas_io.py +827 -121
- pyogrio/tests/test_path.py +23 -3
- pyogrio/tests/test_raw_io.py +276 -50
- pyogrio/util.py +39 -19
- {pyogrio-0.7.2.dist-info → pyogrio-0.9.0.dist-info}/METADATA +2 -2
- {pyogrio-0.7.2.dist-info → pyogrio-0.9.0.dist-info}/RECORD +210 -207
- {pyogrio-0.7.2.dist-info → pyogrio-0.9.0.dist-info}/WHEEL +1 -1
- pyogrio.libs/{libgdal-cb554135.so.33.3.7.2 → libgdal-6ff0914e.so.34.3.8.5} +0 -0
- pyogrio/tests/win32.py +0 -86
- {pyogrio-0.7.2.dist-info → pyogrio-0.9.0.dist-info}/LICENSE +0 -0
- {pyogrio-0.7.2.dist-info → pyogrio-0.9.0.dist-info}/top_level.txt +0 -0
pyogrio/__init__.py
CHANGED
|
@@ -19,6 +19,7 @@ from pyogrio.core import (
|
|
|
19
19
|
__gdal_version_string__,
|
|
20
20
|
__gdal_geos_version__,
|
|
21
21
|
)
|
|
22
|
+
from pyogrio.raw import read_arrow, open_arrow, write_arrow
|
|
22
23
|
from pyogrio.geopandas import read_dataframe, write_dataframe
|
|
23
24
|
from pyogrio._version import get_versions
|
|
24
25
|
|
|
@@ -35,6 +36,9 @@ __all__ = [
|
|
|
35
36
|
"set_gdal_config_options",
|
|
36
37
|
"get_gdal_config_option",
|
|
37
38
|
"get_gdal_data_path",
|
|
39
|
+
"read_arrow",
|
|
40
|
+
"open_arrow",
|
|
41
|
+
"write_arrow",
|
|
38
42
|
"read_dataframe",
|
|
39
43
|
"write_dataframe",
|
|
40
44
|
"__gdal_version__",
|
pyogrio/_compat.py
CHANGED
|
@@ -24,12 +24,17 @@ except ImportError:
|
|
|
24
24
|
pandas = None
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
HAS_ARROW_API = __gdal_version__ >= (3, 6, 0)
|
|
27
|
+
HAS_ARROW_API = __gdal_version__ >= (3, 6, 0)
|
|
28
|
+
HAS_ARROW_WRITE_API = __gdal_version__ >= (3, 8, 0)
|
|
29
|
+
HAS_PYARROW = pyarrow is not None
|
|
28
30
|
|
|
29
31
|
HAS_GEOPANDAS = geopandas is not None
|
|
30
32
|
|
|
31
33
|
PANDAS_GE_15 = pandas is not None and Version(pandas.__version__) >= Version("1.5.0")
|
|
32
34
|
PANDAS_GE_20 = pandas is not None and Version(pandas.__version__) >= Version("2.0.0")
|
|
35
|
+
PANDAS_GE_22 = pandas is not None and Version(pandas.__version__) >= Version("2.2.0")
|
|
36
|
+
|
|
37
|
+
GDAL_GE_38 = __gdal_version__ >= (3, 8, 0)
|
|
33
38
|
|
|
34
39
|
HAS_GDAL_GEOS = __gdal_geos_version__ is not None
|
|
35
40
|
|
|
Binary file
|
pyogrio/_err.pyx
CHANGED
|
@@ -153,9 +153,13 @@ cdef inline object exc_check():
|
|
|
153
153
|
else:
|
|
154
154
|
# Reformat messages.
|
|
155
155
|
msg_b = err_msg
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
|
|
157
|
+
try:
|
|
158
|
+
msg = msg_b.decode('utf-8')
|
|
159
|
+
msg = msg.replace("`", "'")
|
|
160
|
+
msg = msg.replace("\n", " ")
|
|
161
|
+
except UnicodeDecodeError as exc:
|
|
162
|
+
msg = f"Could not decode error message to UTF-8. Raw error: {msg_b}"
|
|
159
163
|
|
|
160
164
|
if err_type == 3:
|
|
161
165
|
CPLErrorReset()
|
|
Binary file
|
|
Binary file
|