Skip to main content

Vectorized spatial vector file format I/O using GDAL/OGR

Project description

pyogrio - Vectorized spatial vector file format I/O using GDAL/OGR

Pyogrio provides a GeoPandas-oriented API to OGR vector data sources, such as ESRI Shapefile, GeoPackage, and GeoJSON. Vector data sources have geometries, such as points, lines, or polygons, and associated records with potentially many columns worth of data.

Pyogrio uses a vectorized approach for reading and writing GeoDataFrames to and from OGR vector data sources in order to give you faster interoperability. It uses pre-compiled bindings for GDAL/OGR so that the performance is primarily limited by the underlying I/O speed of data source drivers in GDAL/OGR rather than multiple steps of converting to and from Python data types within Python.

We have seen >5-10x speedups reading files and >5-20x speedups writing files compared to using non-vectorized approaches (Fiona and current I/O support in GeoPandas).

You can read these data sources into GeoDataFrames, read just the non-geometry columns into Pandas DataFrames, or even read non-spatial data sources that exist alongside vector data sources, such as tables in a ESRI File Geodatabase, or antiquated DBF files.

Pyogrio also enables you to write GeoDataFrames to at least a few different OGR vector data source formats.

Read the documentation for more information: https://pyogrio.readthedocs.io.

WARNING: Pyogrio is still at an early version and the API is subject to substantial change. Please see CHANGES.

Requirements

Supports Python 3.8 - 3.10 and GDAL 3.1.x - 3.5.x.

Reading to GeoDataFrames requires requires geopandas>=0.8 with pygeos enabled.

Installation

Pyogrio is currently available on conda-forge and PyPI for Linux, MacOS, and Windows.

Please read the installation documentation for more information.

Supported vector formats

Pyogrio supports some of the most common vector data source formats (provided they are also supported by GDAL/OGR), including ESRI Shapefile, GeoPackage, GeoJSON, and FlatGeobuf.

Please see the list of supported formats for more information.

Getting started

Please read the introduction for more information and examples to get started using Pyogrio.

You can also check out the the API documentation for full details on using the API.

Credits

This project is made possible by the tremendous efforts of the GDAL, Fiona, and Geopandas communities.

  • Core I/O methods and supporting functions adapted from Fiona
  • Inspired by Fiona PR

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyogrio-0.4.1.tar.gz (308.1 kB view details)

Uploaded Source

Built Distributions

pyogrio-0.4.1-cp310-cp310-win_amd64.whl (15.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

pyogrio-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyogrio-0.4.1-cp310-cp310-macosx_10_15_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

pyogrio-0.4.1-cp39-cp39-win_amd64.whl (15.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

pyogrio-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyogrio-0.4.1-cp39-cp39-macosx_10_15_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

pyogrio-0.4.1-cp38-cp38-win_amd64.whl (15.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyogrio-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyogrio-0.4.1-cp38-cp38-macosx_10_15_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

File details

Details for the file pyogrio-0.4.1.tar.gz.

File metadata

  • Download URL: pyogrio-0.4.1.tar.gz
  • Upload date:
  • Size: 308.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyogrio-0.4.1.tar.gz
Algorithm Hash digest
SHA256 7c3ba67a1a0b0c43b94d3d8be0c80b1f3f4645b94c9e25167f75779cf895ea9d
MD5 0b5aea09a23feb4849ae2ac459978b4a
BLAKE2b-256 5f1eb5e539ef779ada51be96d8289a0d849e88116818e68fbfbcb839a6b215b3

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyogrio-0.4.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 15.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyogrio-0.4.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ab9a2c17758c55b4ca5105b3dbfc98e8a08011eb3257c14701f1cb687ff0b12
MD5 ed2fe9c7a957bdde0f07563d3c78b9a8
BLAKE2b-256 a5a597c785a70e77ab59e157fae2358046d87f020411a874ef27356d0042f440

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2456e3d9679d8b571698294049f697f5e6de5d443c2e451eca6b719819f5bd4
MD5 84145be3e1b699efa1e73d57ba82a61f
BLAKE2b-256 0a11dc8d9d2bb9b0f5ed53776059a6c0dfd2f4b1cb017a6f6ae5710d7c0c842c

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 55ed6be0e77d69b8cdc90dc8cd643ff418c7cc229826f94156b51a2978375351
MD5 7f7c17efde5d3cb6dcb8dc28442f6f46
BLAKE2b-256 7a7c89b9b7d622509af878120f41b086bca3b51faea9d72b542758d438a54233

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyogrio-0.4.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 15.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyogrio-0.4.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0fc4ff4d6364a9a05eff550c8216893092befa34228956902bacc8bf4e0ce714
MD5 39042b13e42b6f8fbf31d621260d63f4
BLAKE2b-256 9fe4c0af22180defd6d1c213af6896a3e0e979dcbdb20960fbed09b64a6619f2

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 50ebe2e62789f13229465bbdba03bae8eb24290b8381008a8cf4c9805ca55205
MD5 32929935210608d01f17eed50e77653b
BLAKE2b-256 a40e7630f84daae6d066b083cb24ad84b290e21a9a3bd191e127560f1aaa4eb4

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d607a85b8cc1f972fc1700b258b50b8f19e8dd993dc3b3e2ac56c7fb55557af0
MD5 2a10131d7271edab67140e38526f9d44
BLAKE2b-256 80bf0d4b4394f215798bb0703f90e3a870347215aa5da3b1c72306d18979a4d5

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyogrio-0.4.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 15.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyogrio-0.4.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d2d4cd83d5565c9419ad16881e4e62b443b655a0c95afdc175d615d0a84a5a92
MD5 1b01e8f7e0ab5149f688409b7cd42a5b
BLAKE2b-256 1acf25a9be0803c91045d8e1f77a0b9e036d28194277a592f9af4b013ba630a5

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a0c2052b94d348725d2210136e1405e37ae3590d7cad85f94834ce3b7d9800d
MD5 82efcd363ac5ee1487ea759b65dcc523
BLAKE2b-256 191a2a43ef31c7fc72f413b1b7506c51f8a1b0b7789649e125db86aaf5741365

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.1-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 a5270242029cfccc39032a983891392de2d8f95b9bb95018e27f87b8c4f34cc3
MD5 08f13614a1f5eb0e041f481dfc57e3e5
BLAKE2b-256 fe872e5ea64d3245705e4f6a034aff1ce040a26016eeafbd4f0f6871b2c833f0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page