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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

File metadata

  • Download URL: pyogrio-0.4.0b1.tar.gz
  • Upload date:
  • Size: 302.3 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.0b1.tar.gz
Algorithm Hash digest
SHA256 d4c2a3130f9d6421129499187d10a37cebf3c70aba95f80c0a89afbef05efff4
MD5 19b2809768e4f774ce988c4827bf97f9
BLAKE2b-256 6d09c5d45780616023509016a13a72413f5f497697db536b286498c94d3966b1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0b1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 61c5ff5a25e57667bb1f75eb27344a930ee05bac995bf4fc3476a0d2d27a3c2d
MD5 0e3df8f3675dc761fec555c49452cce0
BLAKE2b-256 4f7f19e36b6f31a3d4e858bf24a3782caba0848af29ae16dcef98595de33c615

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4780ad2b2fb755623dfbc812160557a3500d3426d9dcc34106f1b8b01dcc066
MD5 edec2fd007e5c9e6172c1e4ab49eccb7
BLAKE2b-256 e75421cf1c47cc26b93a16b52c07180f315861b4d6cfe25343509b400b8b09d7

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0b1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 7533a1fee4c25508cc24bdc6bc2dca15b30161a7ef81cc5f4debf4d05012541d
MD5 5d9b7344b36953b6cd72e588c43fb55f
BLAKE2b-256 95f7625dcc0216c50811835328fbbe9df152f13ab1d0ac3cda74debde30c70b2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyogrio-0.4.0b1-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.0b1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 700ae67f5a0af9c1e41adb14ab54607dc541e5279c2d97acef7088775e3c1900
MD5 fcea39390b4b3fefa01b37ee844e3661
BLAKE2b-256 85b6a313d177b40345726646d2451905ed43cb0980df158947af310c3df38f6d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef11906d6ae3b3cd3d10607d28cf98d26b99493fb81fc6b18ab21c81a2a700e3
MD5 e2dc4861ba0be1ed9d0780d6df213eca
BLAKE2b-256 0e399dd578ae34d04ced9075d4ed87cca0fccb28cf9e77661db52341f1be0570

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0b1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 8aaa84eb1de491a892f9a8a266770f70ac01d3e1708c31155736442dfc9a32c1
MD5 45e9b357d5594c7f8d0a1b82acfb42ae
BLAKE2b-256 7d86bfac7e7d6ca8db739cc1458a99b7482263064f8108b2228ed8bcc4d8ec16

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyogrio-0.4.0b1-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.0b1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2997789c846e7a888916461ad2b8a40875ccd95b8c73692761f2b48ecce73c36
MD5 b18f8a3899496497039baaf97c675cdf
BLAKE2b-256 8a90da0d4fea998d7ff7a9d4755440b86df1f9291c81869f60610ca5dd943b0c

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f147cc48746fa9057de7fbdd13886613ca63f4d7a9a42ae457f5e92664545e78
MD5 1d3550ac42f9a0bc1d3b47c1a8c2ce05
BLAKE2b-256 fa0faaa4c164a838606214d3669ead6c681546a5afbed109ac6b4a99bcb19d57

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0b1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 e428da3e58c04f055c66ba5cdd0b59177bddd532266c28489dc24b331bd2f57c
MD5 c0b77fda6840c952f6e7030c93805958
BLAKE2b-256 665846422e9b82d3f9cd00f7bf8825dbf5727dc62f9dcf8bd47643002f41f362

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