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.0.tar.gz (302.4 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.0-cp310-cp310-win_amd64.whl (15.4 MB view details)

Uploaded CPython 3.10Windows x86-64

pyogrio-0.4.0-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.0-cp310-cp310-macosx_10_15_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9macOS 10.15+ x86-64

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

Uploaded CPython 3.8Windows x86-64

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

File metadata

  • Download URL: pyogrio-0.4.0.tar.gz
  • Upload date:
  • Size: 302.4 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.0.tar.gz
Algorithm Hash digest
SHA256 85480e687872a3e3b11b3e2147e8aa779e28f165c60e01b2102971c895b84b82
MD5 1632d5e62697e08ea4ac3ec7dcb3427d
BLAKE2b-256 7cd2aca81b9a430bcc295f31f646565f8f385b3d59e737fc350fbd0e6236a792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.4.0-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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1a8ab670cce03c259eac8d7f8b1042fa4bb61b525f8157b7a39fa87dbb562281
MD5 a1db1a02daf526e519fbbe5c2600f69c
BLAKE2b-256 526b5713097f7a2880bea33118871e4af70f74194a54303e2d01df9c4cd75227

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f564ee5778520e643e351826c6f6b5f4421c11c977876722adbc79fd58317c8b
MD5 1f29729da461b4b411d1dfd30b8ad767
BLAKE2b-256 ff2a1cb2d846b01c6cd61bbdedf5ec0435c2d46d48419d51e4f70e714b67f983

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ec5e461ef5076ea89cf29d0933f9c278b67dd84bb371e5ed64c6c049bdfaa719
MD5 ad0934b45653b8f38e76baa601eb4f67
BLAKE2b-256 0f91d0b75f2223b53bd1e163036d0698ed136c33410469703c53014ae46b0c0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.4.0-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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d205bed128ade326392e94c7fcc2d66f86b1ebd87a26928efb12bf01d7ec3cc
MD5 b468e59442217859497a3636d82eab4c
BLAKE2b-256 2c9959076be10d8cc5c3b6bfb101009b6c11f6e9d11de59be9e0a45d36100a94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54e7f6136568b19977380211cdece9a3f2a0bd806e97e00f2466aacef0039186
MD5 495f08ddb59c5efbf1c094e5ad29ad10
BLAKE2b-256 bc4143e10f05097b811403c0a660f6cdabd5652b03ba11f59999fb43520f79df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f87605c383b8ff11049792118f948388cfc80131b3724c0b9b649f0a7709400b
MD5 abfd259ad016057a579bdd3ed5f6ff46
BLAKE2b-256 f6c3ec67a363aea4d391ef08549c95e46b2ef23c38e057a92e7acbe5e6f23e41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.4.0-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.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 96f6d3fc15ccf1a6799704a559636b7a4ca62ecbea6a93b2dc146fea5be55466
MD5 ded01abca712b76368e0ca74c6772078
BLAKE2b-256 63540ab6ff30a09703498e3d070ba5f642f05f6099a1fee2574d7f8e443ea9b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8100b233d34ee3438100662487e5c084dcfadfa65de7cdab5206f180929c9d0
MD5 0871c831fe0bd94a8d4938747c2d78d2
BLAKE2b-256 22b4dc82027f179edb1e14e7d5db4244bace51c217aca95a1d1ac3d09617acd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.4.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ecd68c47153b85598f72cec979a7fb595731d5caa2b6ff7d753c76838a8ceac0
MD5 17742fd5fd672759f6dac119fa601d7b
BLAKE2b-256 ec77deeefc6b5bc4be2469ea8dfb75089cb90f7c4f33099034d21cb698cffc1b

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