This commit is contained in:
2025-01-26 19:24:23 -08:00
parent 32cd60e92b
commit d1dde0dbc6
4155 changed files with 29170 additions and 216373 deletions

View File

@@ -1,27 +1,32 @@
"""Vectorized vector I/O using OGR."""
try:
# we try importing shapely, to ensure it is imported (and it can load its
# own GEOS copy) before we load GDAL and its linked GEOS
import shapely # noqa
import shapely.geos # noqa
import shapely
import shapely.geos # noqa: F401
except Exception:
pass
from pyogrio._version import get_versions
from pyogrio.core import (
list_drivers,
__gdal_geos_version__,
__gdal_version__,
__gdal_version_string__,
detect_write_driver,
get_gdal_config_option,
get_gdal_data_path,
list_drivers,
list_layers,
read_bounds,
read_info,
set_gdal_config_options,
get_gdal_config_option,
get_gdal_data_path,
__gdal_version__,
__gdal_version_string__,
__gdal_geos_version__,
vsi_listtree,
vsi_rmtree,
vsi_unlink,
)
from pyogrio.geopandas import read_dataframe, write_dataframe
from pyogrio._version import get_versions
from pyogrio.raw import open_arrow, read_arrow, write_arrow
__version__ = get_versions()["version"]
del get_versions
@@ -35,7 +40,13 @@ __all__ = [
"set_gdal_config_options",
"get_gdal_config_option",
"get_gdal_data_path",
"open_arrow",
"read_arrow",
"read_dataframe",
"vsi_listtree",
"vsi_rmtree",
"vsi_unlink",
"write_arrow",
"write_dataframe",
"__gdal_version__",
"__gdal_version_string__",