Skip to main content

geoparquet-io

PyPI version Conda Version Tests codecov Python 3.11+ License

Fast I/O and transformation tools for GeoParquet files, powered by DuckDB and PyArrow.

  • One interface for conversion, sorting, partitioning, and spatial indexing.
  • CLI and Python API with full type hints.
  • Unix pipes with Arrow IPC streaming—no intermediate files.
  • Read/write to S3, GCS, Azure, HTTPS via DuckDB and obstore.
  • Automatic Hilbert sorting, ZSTD compression, bbox columns.
  • Add H3, S2, A5, quadkey, KD-tree spatial indices.
  • Aggregate huge datasets into A5/H3 grid cells or admin regions for low-zoom visualization.
  • GeoParquet 1.1 and 2.0 support, including Parquet geometry types.

Installation

uv tool install geoparquet-io   # CLI (recommended)
uv add geoparquet-io            # Python library

Or with pip:

pip install geoparquet-io

Or with conda (also works with mamba or pixi):

conda install -c conda-forge geoparquet-io

Note: the conda-forge feedstock doesn't yet carry gpio's DuckDB pin (<1.6, see #1346), so a plain install pulls DuckDB 2.0 and breaks add s2/partition s2/a5. Pin it: conda install -c conda-forge geoparquet-io 'python-duckdb<1.6'

Quickstart

# Convert any vector format to optimized GeoParquet (ZSTD, bbox, Hilbert order)
gpio convert places.geojson places.parquet
# Converting places.geojson...
# Done in 0.5s
# Output: places.parquet (63.45 KB)
# ✓ Output passes GeoParquet validation (metadata checks)

# Inspect the file
gpio inspect summary places.parquet
# 📄 places.parquet (63.45 KB)
# Rows: 766 | Row Groups: 1 | Compression: ZSTD
# GeoParquet Version: 1.1.0 | CRS: OGC:CRS84 (default)
# Geometry Types: Point
# Bbox: [-0.989102, 9.798559, 1.480825, 12.391399]

# Re-sort and upgrade to GeoParquet 2.0, with native per-row-group bbox stats
gpio sort hilbert places.parquet sorted.parquet --geoparquet-version 2.0

# Check it against best practices
gpio check all sorted.parquet
# ✓ Version 2.0.0
# ✓ Uses native Parquet GEOMETRY/GEOGRAPHY types
# ✓ Bbox covering column 'bbox' declared (optional in 2.0; enables page-level pruning)
# ✓ Row group statistics available for spatial filtering
# ✓ ZSTD compression on geometry column 'geom'
# ✓ Data appears to be spatially ordered
# Spec Validation: ✓ 40 checks passed

The same flow in Python, in-memory and without intermediate files:

import geoparquet_io as gpio

table = gpio.convert('places.geojson').add_bbox().sort_hilbert()
table.write('sorted.parquet', geoparquet_version='2.0')
result = gpio.check_all('sorted.parquet')
result.passed()  # True

Documentation

Full documentation is available on the website.

Head to Getting Started to dig in.

Development

git clone https://github.com/geoparquet/geoparquet-io.git
cd geoparquet-io
uv sync --all-extras
uv run pytest

See Contributing Guide for details.

License

Apache 2.0

Metadata

Release files for geoparquet-io 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoparquet-io 1.8.0
File Size Uploaded Provenance Actions
geoparquet_io-1.8.0.tar.gz 5.7 MB With provenance Details for geoparquet_io-1.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geoparquet-io 1.8.0
File Interpreter ABI Platform Actions
geoparquet_io-1.8.0-py3-none-any.whl Python 3 none any Details for geoparquet_io-1.8.0-py3-none-any.whl

Total release size: 6.9 MB

Release files / geoparquet_io-1.8.0.tar.gz

Download URL geoparquet_io-1.8.0.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
7041adee01bd7196c9e150933dba1061ccaecc61b968db3db0c5c2b9c5620195
BLAKE2b-256 checksum
How to use checksums
30c46250f14cb5e348b2a6c66508253619f4fbfc983d5ba549c695a7bd91502b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / geoparquet_io-1.8.0-py3-none-any.whl

Download URL geoparquet_io-1.8.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5e66dbe042e5e9670a15899a981678da97e4e0ecd32fe32a2eb0e24ea58d0a2a
BLAKE2b-256 checksum
How to use checksums
6bc077346d746ef40540b8a4b4f1cb03e5867877b029652c1b7893034fb231e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for geoparquet-io 1.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for geoparquet_io-1.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page