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.2.tar.gz (309.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10macOS 10.15+ x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9macOS 10.15+ x86-64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8macOS 10.15+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pyogrio-0.4.2.tar.gz
Algorithm Hash digest
SHA256 a6d74a7b93cb165eee19beee380275d39eabd3f17cd1ecb9e67dfc340d5ba433
MD5 61b44911f9b45454c1bd288e8f567589
BLAKE2b-256 8b3744d5a78a771a59da11c68dcb8e5acacd7958653b84db7b49f9a65c31b0ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.4.2-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.14

File hashes

Hashes for pyogrio-0.4.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dc30496501ad0e4768541a4d10e07310275efacaac2f7553d4052adcf46aee88
MD5 ea7098e21825985e289a635ae4660591
BLAKE2b-256 f72ba7e7bca140ac0c1230c15da9fe2f7694fc64cf973a0849761e7b66d1e0b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b022d74ebfe180b0c153a557734bfab498880378428408fe8854a2181e6e0858
MD5 a4daf7ce4eca9654f64e0cf37fd3cc60
BLAKE2b-256 a2ae31c36f5418e5cf605d4bf18b2d0fd200ddb5d6550ee2c693c3efa91c20a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.2-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 6920d95a9b603fcf72660a0800acbdc4430986e9c3eaca4a7fdf863f6204534a
MD5 fc4af47eaa997c749f184d0ee490cbc7
BLAKE2b-256 a757105885c3e5c0acd30d1189bb1b631b92555c8e54d12898545ede4bccee29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.4.2-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.14

File hashes

Hashes for pyogrio-0.4.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f37f7991073962b86c8a9e5a226ca6f1aaa273aa304ed98c9c1f5b2f2a9f1f23
MD5 d8b71f54e582f979f34df275108c9375
BLAKE2b-256 244f0548e42316bdba19b1fb7e493a859419b8a57b99c5d41352a5d50fa0ab7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 464e62e78887080fef6cad0c33e0396bc0dfb7dc4515ed44b5229c3259e43f67
MD5 9cef48379634e9f17451e4736622a088
BLAKE2b-256 b3c5c667e579e5a686235096152d310bca76569952e8db9f4e57a16c46c6e2c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.2-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0785929f9137d26ce8f5ee070bc9442552cf3bd28359c98e953c72975d19df41
MD5 7b1515f3268dbc937bd36d9d8032e206
BLAKE2b-256 d7b4f538b9b36c81a2e2ef6b73e1fd23c3e24e83e3518710452a3f8824860978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.4.2-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.14

File hashes

Hashes for pyogrio-0.4.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 59a2272b782728d55a2802feca6dbe8d5faf6ddd607e23a3db411176121521e9
MD5 3830ef25485117dc2fd517cbfeca9c77
BLAKE2b-256 e8c00b95ba350e49573c5a7cf111e5ec367302b2152da9cae452fe072dd41fbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d7da577211b112a9ca9aef14445c9cc8a3677038005c2e836be7144c85bdafd
MD5 4f91c8de15812a28913fca31382c4aaa
BLAKE2b-256 c6a7a5b6483de9f69c79239b3a3a0a2c96ae9b575405b58a3631a67e45cb694d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.2-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c1a2ab89a93dabd5543b5a4448596e57cc100d8d93b65b42dc024997e2813df9
MD5 8a7ba4deb15462d619aaea2bd64f9beb
BLAKE2b-256 7a4c9084d6c67af7d9e3da99912ea0f2f3f084f8bdbae63e60b55a332e51426c

See more details on using hashes here.

Supported by

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