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.11 and GDAL 3.1.x - 3.6.x.

Reading to GeoDataFrames requires geopandas>=0.8 with pygeos or geopandas>=0.12 with shapely>=2.

Additionally, installing pyarrow in combination with GDAL 3.6+ enables a further speed-up when specifying use_arrow=True.

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.5.1.tar.gz (301.2 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.5.1-cp311-cp311-win_amd64.whl (14.1 MB view details)

Uploaded CPython 3.11Windows x86-64

pyogrio-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyogrio-0.5.1-cp311-cp311-macosx_11_0_arm64.whl (13.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyogrio-0.5.1-cp311-cp311-macosx_10_9_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

pyogrio-0.5.1-cp310-cp310-win_amd64.whl (14.1 MB view details)

Uploaded CPython 3.10Windows x86-64

pyogrio-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyogrio-0.5.1-cp310-cp310-macosx_11_0_arm64.whl (13.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyogrio-0.5.1-cp310-cp310-macosx_10_9_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

pyogrio-0.5.1-cp39-cp39-win_amd64.whl (14.1 MB view details)

Uploaded CPython 3.9Windows x86-64

pyogrio-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyogrio-0.5.1-cp39-cp39-macosx_11_0_arm64.whl (13.6 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pyogrio-0.5.1-cp39-cp39-macosx_10_9_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

pyogrio-0.5.1-cp38-cp38-win_amd64.whl (14.2 MB view details)

Uploaded CPython 3.8Windows x86-64

pyogrio-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pyogrio-0.5.1-cp38-cp38-macosx_11_0_arm64.whl (13.6 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pyogrio-0.5.1-cp38-cp38-macosx_10_9_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pyogrio-0.5.1.tar.gz
  • Upload date:
  • Size: 301.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyogrio-0.5.1.tar.gz
Algorithm Hash digest
SHA256 c34cda21771b21ad7989b61a72f860e1b505cd1602221df8d61d167fdbf69e33
MD5 ea3b6ec924318176621d3ae2b69a63f6
BLAKE2b-256 a854b1b53fc81f64325c68140f556fa8d09c488afbac4c6d7b5e51eae4f42380

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyogrio-0.5.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 14.1 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyogrio-0.5.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 05380356605005f5be3c87ef24412e4a8c669725303a493011c72219d6cef463
MD5 89cf670becd4d669d3d28d47cc9a03ba
BLAKE2b-256 a95d3554c6666300debde0513848f21c67846a491f9f5850c3208785b962b8c8

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf8f043be20d9a3cba8375e03510818b638a715433b851b43ae20fac57964d3f
MD5 e5f207d4572470221ceb92b88cb413b0
BLAKE2b-256 77ea3f4091edc63312a5d6a4389adcd158f61f56f0c04239f79138fe2eac05b2

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 955adf7d235a10add0c2f0db78e5ae5ad058a78a38f8d1e9fa3f6e8868e191c3
MD5 12f9482955fad6884eb9866bb992474b
BLAKE2b-256 1582e349761673bbfb6f5cc272139b8e10a32f881f9eb1a00c6c89c552de5a50

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e9128da1277150de7938225756236fe4f54353d2456f6c1d73b86edd7e6a9798
MD5 07812e95a45c2c60b9bb040165f3f4f5
BLAKE2b-256 55c239c1738d2630643eea9cf054e1cc8ee91b6cd4430308f290971e65535fed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.5.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 14.1 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyogrio-0.5.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0b6b782ca5311585fe97fd2f0bf50a5a5a75cbf55d3bbe7de12102e1f49f0ea8
MD5 0b4c5f67c06e973f8ce4424de72f88c4
BLAKE2b-256 1b1de186fd188a661d85921b14a2b9484beadb71cedfcb7aa19be8f89e581de5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07cd3d3574d3b5eed715a6d30f748c0a93c03e975daaa0af44d70473775cfd7e
MD5 b6ec9a73286bf20c2f7271e4b223d8f1
BLAKE2b-256 0e474f758722f8509bb384738184ff7b488968cf146cfc273bf937c35ec375ce

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d588bfe097dc438dd39c77918aa4807945b30f5527e940b7b20e6cad4c7a0e3
MD5 8875cec36c626e4462bac3cdd0b5e9cf
BLAKE2b-256 9046146ece0e7d18b3f1b7f1db88f64d854a61610ea80468b0c713a387394821

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fb350969357cf72230456b079e48ce333440f698b7d2b2cb47467738dc82f107
MD5 2368526016a73e48e2f552dcef751c72
BLAKE2b-256 51ce26580a9ab03199b566b2e15340c7313d4fa5b6d5137defd1f0d9f23077ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.5.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 14.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyogrio-0.5.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d2fd7a08ef6b63c2ad33860552301d56c638d64605bdaafc743ec0e7df909a78
MD5 1d247b8e6b3f4a85418c6d2e5fd2d972
BLAKE2b-256 b0fb7f3395922150cad6f27f459dda9da6fed16789ef3a6018a2d14072594ee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2d4b8b8b97fd33ed6467132ac124b4d176008702fa98bb6bdc479cffcbdfe327
MD5 143249fa882c290326acc057517551f2
BLAKE2b-256 6d468a0eecb5f4024ebbeb123a0f2a7320db6187b6f3519bb909f033329fd2e8

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59507e0f5ec87ca6914a10f825fdb20362a6b46c779d7f5af8fb6c6814f554f2
MD5 cc5ac619d28fe154b5a15e5ada885de9
BLAKE2b-256 8d958ce62ff6d2a667d749d46142d720b544a418ba1d8226a484aa94d7a471fa

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 248905d476ad4af3314415875486bb3f9b0a004b36858a6ffdb37f36d3633b34
MD5 6cdbe9dd2e2d50e33341c641b14f28cb
BLAKE2b-256 cf32d0f0660ff14f719a61b035431fd02124f98baac5e2f474bc832fd99d226e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyogrio-0.5.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 14.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyogrio-0.5.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b30d208315a28b9972b55b778f4f810a000f6ddbf8b8f82cb9b6cdea9c841450
MD5 b64fc3d4ee55b624e35a3ff5a843be40
BLAKE2b-256 04a44f2152c2fb11530f820da54f06a321420e36a48cc6eb920c1eb30467f6b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41cd73eeab887b50d6c80322c6265654c45d8bc69d594580c99866143b98111f
MD5 807e78403bcb22e98d1c8e0b5d57f30c
BLAKE2b-256 2fc02126a21a6f10e0c84252e7e0a5433bb399d0a49c6aacb4a83eb3d1cc7735

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7293f16fce6dd737be6405d720c0bbf21cf9ee99ed2b642863cd7d202298dadb
MD5 de74501ba9edc2727d7f8f4369f5a6ba
BLAKE2b-256 3312f1e85cc50872b6cb268c34d81fe345221a49d3ea0ddc1461e20b7bafe767

See more details on using hashes here.

File details

Details for the file pyogrio-0.5.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyogrio-0.5.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 07eb49ae93e119cc923f2b56c508bf37bf33d57c5dc9a88302a975df6fdfe51c
MD5 030bca0577f71e5b1cd6e9ae28681e1c
BLAKE2b-256 ea68b429bc32403967be19fe8a8b92a7f2953fc36a2bffa9944f876f0729e464

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