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.4.x - 3.7.x.
Reading to GeoDataFrames requires 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyogrio-0.7.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a80db8cb7a435dcf6a7b02d32ed496018719b2c5dbc63145e36980674589049 |
|
MD5 | 537015737bd766990e7d611d82072648 |
|
BLAKE2b-256 | 1763f1d6a204581803beff8320c660a67881f33db3ba7871b5375c1c3479fb6a |
Hashes for pyogrio-0.7.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 330a7ad643ed9b6a4c64feec06333b00eef871ced672cb4e873249b76e7dfdcf |
|
MD5 | b5e2ab8a6f7ebe2779e981edf56393ba |
|
BLAKE2b-256 | 9fcac49bb7e3137317355652e6c48b492b4d5005de4f5c81b85bb7fa911e9c2b |
Hashes for pyogrio-0.7.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f63beed424185c4d32dfbc7c096e45e1c8611d10471affe5164be497d76501a |
|
MD5 | 9559f6a96bb87c0f67666303ebcf240b |
|
BLAKE2b-256 | 7fb09c94af654cf58192a0378b495558353ccad3691e5721e34fd234f69e6275 |
Hashes for pyogrio-0.7.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c88bb412dd4e6b88bd8974c0a990093466d5ca82a710718577d42b539f196aee |
|
MD5 | 7217f01258673b28f6fd084cac46ac8e |
|
BLAKE2b-256 | 904c7b3cfab5f371b7bd49886d1a455b0ae24469a6b8621cf596b32947360353 |
Hashes for pyogrio-0.7.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b8dec9c04d863c5705a725681e55e725ac9ac9c33e06a6a2edeb1793c43429 |
|
MD5 | 4818394179edee39ee53d36cb28121fc |
|
BLAKE2b-256 | 7503e26b84964cac0fef8185ea0528c34feade3552cfd568bf260d00d6fea966 |
Hashes for pyogrio-0.7.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f7738ad62c6686531dbeb4f39f06d540374e5c8fbe944b90797054ced9c7bca |
|
MD5 | aa4d0cede03b9fb3b32acd7ee06e7e38 |
|
BLAKE2b-256 | 8b26505518a4bacc28698cf22d596e83350d418bb747fb5c0e5375dbd106ba0e |
Hashes for pyogrio-0.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043939d0945a1c19693daee41f06667c4a03679d0fcbde0dd6b39db31417bf9e |
|
MD5 | a65168c86ad99ebbbc8e741f47ee8fec |
|
BLAKE2b-256 | 67b58f2765d0a2319438606330e69b50ce99a252373111d3ca8881d9ca2ab20f |
Hashes for pyogrio-0.7.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8498beeff26994d1f5eb13d1d8e56c1ca2da85c7b1504d66cff425bddb03a53f |
|
MD5 | 9ed21b077079714d869c3493d830d829 |
|
BLAKE2b-256 | 3c3b79cf55411f687d87964b767d9ab5d89d53384665a19202288f024bfc06b6 |
Hashes for pyogrio-0.7.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47bafc4358294b342e416a276120b9a39f09f3b4fc6c0041e260de1ade1fed32 |
|
MD5 | 1a499565e30e8b170be8baf34fea6156 |
|
BLAKE2b-256 | fa8bdc2ba5e9f3391a54aa9dc5f6fd4dab7517e4829ad2d1a12c81e0c29278a2 |
Hashes for pyogrio-0.7.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8daf521db87431cc7932fff1b81e113e2f7b23714a629da6e144b67ad25458ee |
|
MD5 | e2965525d6ac52b1530698d8fe66684b |
|
BLAKE2b-256 | a1222d5c05c3fb426b95084fbed1107b1c0f8601ee015f40fb25486246d8ce6f |
Hashes for pyogrio-0.7.1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540a0ed9a2847859cc3894bb2982e731ffeae6f54157e88c665423c1820980b7 |
|
MD5 | 9385d12a0f5d74ae93becd8d7218fd06 |
|
BLAKE2b-256 | e8d53800795b7d19d8793e486931f1aa848d43ba94927bae1c73fa7ae88d6f5d |
Hashes for pyogrio-0.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 693cc641f3e822912e2a24df4ab9683014d3ad95d9a905202525ccb513310d3a |
|
MD5 | 6f5c60196f0eb14096de6ff4fbe17c67 |
|
BLAKE2b-256 | c08e577999d03d831ccd79ffe0dd440194d6c029ae828ab7d677db9e55dc83b2 |
Hashes for pyogrio-0.7.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09205f3d7d44306c3a6d32cd41e881acda8c3aa456348fd5fe16ba2907c6a5df |
|
MD5 | d1cd0fecaa7861f20efb67f91397a879 |
|
BLAKE2b-256 | 1caec3942b22fed0568fcc9d5a45ec426448e5b45190819958dcbf1e89c3f394 |
Hashes for pyogrio-0.7.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3bea3896d3efc67bb97b4dc5a9e67392a744e9d48f812b9c925b9fda571afc1 |
|
MD5 | 0d43b3ed4be02259a0649dd89cc6cc86 |
|
BLAKE2b-256 | 15ee8cdaf42f4169b44a069eacd11b7b9fbc432becc59823a07e678ab4fff254 |
Hashes for pyogrio-0.7.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a81b2efe0d9f89558f288e2cd7a71ab4948f52ab5ca233d97728f69663192ef5 |
|
MD5 | c7c5cf0af9fa399d6c9da6bf720327b2 |
|
BLAKE2b-256 | 087b13b6c015b7062066fa39fb82324958ec4bc9089bf03add8498f6c8cb6da7 |
Hashes for pyogrio-0.7.1-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bd561462d72abd5b146dc92bb84bf36a508c3b422b2d28dbd3f9c1e266bf228 |
|
MD5 | 1d2e2f1f225fe120b01ecebe658ad047 |
|
BLAKE2b-256 | f09ef297b5fd9cebd76156f723c763db6d9adb9a05482a2219bd08294299509f |
Hashes for pyogrio-0.7.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d389edbe48fcef5117c791d3ab8fe21a3f8cfde37ed472bdcfee12d7df9b91e8 |
|
MD5 | 75cf631f5772c241027a72cd05332bde |
|
BLAKE2b-256 | 199398527916c9a27b3539223ae947b55043f8044f48ece801e6c0630719f4cf |
Hashes for pyogrio-0.7.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37d5865418582754a37e3d34df2608a6b1c58a49aa61697ad0ddd652f3ef5377 |
|
MD5 | d7ec140fe7a5ac8974b3639e0fa14fb3 |
|
BLAKE2b-256 | 2771f5d1eff7a0b9df294b0af8a5a64e73b0a74a9f84402fea2161e4cb12f458 |
Hashes for pyogrio-0.7.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcdde59ed711d5d11367d751b6d524286854127a94f5a0d056845ff5de84d742 |
|
MD5 | 4a1eec895af1d3e9bf7230317228f20d |
|
BLAKE2b-256 | 2fd0539b299ced22748ae5e7dae8646ec15de0e0f9c1de3be93bef77c0b67177 |
Hashes for pyogrio-0.7.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8da126f1b4e72e5f3a5d91bf5fbc7ae0a93329f185fc573e342e24deb364fb6a |
|
MD5 | c4370ef08dfa785263d3c2e79bd61625 |
|
BLAKE2b-256 | 097e8f69c21ca9e5b867ecc859a2fc0b459e0e465af28815c09a543287828521 |
Hashes for pyogrio-0.7.1-cp38-cp38-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f7ac31b53ef162f3168b599c2767e138b8594e64152f60e5ce5c6519700916 |
|
MD5 | 39809fb07b2864e703f476b3ea107f0b |
|
BLAKE2b-256 | 6cecf117353477ed22a3b95c4b03982f15726c37936f2594b30e0e4be8d7758a |
Hashes for pyogrio-0.7.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b032363e567329a3c34d377a1815492f725f1a153336660491bf9adb6ab2d2 |
|
MD5 | c98c3dc6139467d32f9b91f22f04b125 |
|
BLAKE2b-256 | c3d10f45f3587caf75810cc944fb8e9f3b5dc1faa72b5d451d5155d9ba86bbc5 |
Hashes for pyogrio-0.7.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe141e49ff35ea2f2a26c5c6a03cfe39aded43bf1435de38c9eeef15b6350198 |
|
MD5 | b60e15a445320340020d53649bc2c109 |
|
BLAKE2b-256 | 3e91f99998f16cc2f624c53d3b33290b558ff22490069473e4152a2770308f73 |
Hashes for pyogrio-0.7.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e160cc9ce9faf56046e75cd656030dd3b406eca478bdde63439b6fdeb5cce06 |
|
MD5 | d197516e864afa28298d74a83f902390 |
|
BLAKE2b-256 | 97e9f4738ac9801340325bdd9df85a2874a20ebebf9aab86707e2a43293fbcc5 |