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.

Requirements

Supports Python 3.8 - 3.10 and GDAL 3.0.x - 3.4.x (GDAL 2.4 may work but is untested; prior versions will not be supported)

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

Installation

Pyogrio is currently available on conda-forge for Linux, MacOS, and Windows. Ready-to-use (compiled) distributions are not yet available on PyPI, but we're planning to work on that soon.

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.0a1.tar.gz (299.4 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

pyogrio-0.4.0a1-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.0a1-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.0a1-cp39-cp39-win_amd64.whl (15.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

pyogrio-0.4.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyogrio-0.4.0a1-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.0a1-cp38-cp38-win_amd64.whl (15.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyogrio-0.4.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyogrio-0.4.0a1-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.0a1.tar.gz.

File metadata

  • Download URL: pyogrio-0.4.0a1.tar.gz
  • Upload date:
  • Size: 299.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for pyogrio-0.4.0a1.tar.gz
Algorithm Hash digest
SHA256 fa3243c3591549cd01769c6ab1fc2f3e84c9e6f6a70d879c1af08ea37dd82f02
MD5 1a05563c0cbd4501106ecc699f798b09
BLAKE2b-256 ec7f9561acbff966c07be5acf57363b280d9d1082c3e382c66ca17dd4b68c7a9

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.0a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3de19c59e24c5a423eb5e928d92984e5ac3a4f8b0d7d4e9502bf3f03f5839875
MD5 e9e51c344bddc1852f033987c65a877c
BLAKE2b-256 8931ef0502965719785f167681bdf772fae6b274bebab9023e72b7e5edb59cb8

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd5223b1a5ad2690f01ea1ded539aa04e5df457b18aadeb910cad9d59180b987
MD5 5ffb83177c0f27fa3956784449a4ae2e
BLAKE2b-256 9ec047d91be5a9ae8c3c8f3ae880706573c3ae6adf9f236305aa3baa552b3711

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.0a1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d630126959ef1989b29ab2685c646933039f51d153ae969542bdefb3dda5c96d
MD5 517ff250e3b3675942c76293f82c16a8
BLAKE2b-256 749ae4f51881236d5f96a61fd8bd40995c13338b1cb2a3c61afad4eb8a507050

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyogrio-0.4.0a1-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.0 CPython/3.9.13

File hashes

Hashes for pyogrio-0.4.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 10be1d40ede4b1c04395c64ae5926176d4d89e4158a75ec8bc38b285d8861b23
MD5 d17afd61ad75498ff0b5953bd9367040
BLAKE2b-256 5e3cadddb3db1adaad8c44b78cc43946b6145551c052cae8c48c4ddfefb13560

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5e312060d126a25236d88840fb1ee07ddbed3bc7fc8114098ad58dac64bb3db
MD5 238c2dd82e7e75d045a84ff034d83153
BLAKE2b-256 07a987be90086a1be28beaff11a4e8ffd95e840284fe7344a222c321e310c39f

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.0a1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 340f5bf765ecf04a94048ad9fee8e69c473b3636bbc44c21fdd0ebd8468e58be
MD5 1e2b67cf841b0c1c974db150a0f97ad6
BLAKE2b-256 e684243cf41709e0a54401ce23070b1e6058ea721e27ebc067beca974301cd63

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyogrio-0.4.0a1-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.0 CPython/3.9.13

File hashes

Hashes for pyogrio-0.4.0a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4f5cc684ee1e30155bebe872bcdc51a712035d63700d9827be85292eab14c0de
MD5 8ce4a72589e5e3a27a70485c14bea17c
BLAKE2b-256 32fee4e4fda3d9c18dde912ce29f06df9ea27f1b506db661ba59a2126da45136

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1190a1052128a894b17d1751cc7ea8b78b7f3d6995a7c4b8bf7c06b27387a62
MD5 9b4ea3881bf01482e5811fbeacdc9305
BLAKE2b-256 7b992eb3260eb1d0764956689e8f80dfe42d2e2a07c5e5384f6e5fda18c9141b

See more details on using hashes here.

Provenance

File details

Details for the file pyogrio-0.4.0a1-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.4.0a1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ae67efc69e1a96b42a4dd841fa3aa329a10062a38fa99f982255d5a8a253ab7c
MD5 1202f9c9f87d64a4152ff6091abe660a
BLAKE2b-256 5a15081be91d3bd7664693d9b1e781271a412861e975e610899ac916fbf1920a

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