Skip to main content

No project description provided

Project description

STAC-GeoParquet

Convert STAC items between JSON, GeoParquet, pgstac, and Delta Lake.

Purpose

The STAC spec defines a JSON-based schema. But it can be hard to manage and search through many millions of STAC items in JSON format. For one, JSON is very large on disk. And you need to parse the entire JSON data into memory to extract just a small piece of information, say the datetime and one asset of an Item.

GeoParquet can be a good complement to JSON for many bulk-access and analytic use cases. While STAC Items are commonly distributed as individual JSON files on object storage or through a STAC API, STAC GeoParquet allows users to access a large number of STAC items in bulk without making repeated HTTP requests.

For analytic questions like "find the items in the Sentinel-2 collection in June 2024 over New York City with cloud cover of less than 20%" it can be much, much faster to find the relevant data from a GeoParquet source than from JSON, because GeoParquet needs to load only the relevant columns for that query, not the full data.

See the STAC-GeoParquet specification for details on the exact schema of the written Parquet files.

Installation

Install via pip or conda:

  • pip install stac-geoparquet
  • conda install conda-forge::stac-geoparquet

Documentation

Documentation website

Development

Get uv, then:

git clone git@github.com:stac-utils/stac-geoparquet.git
cd stac-geoparquet
uv sync
uv run pre-commit install
uv run pytest
scripts/lint

Releasing

To release a new version:

  • Update the CHANGELOG
  • Open a PR, get approval, and merge
  • Cut a new Github release, which will trigger a release on PyPI

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

stac_geoparquet-0.8.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stac_geoparquet-0.8.1-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file stac_geoparquet-0.8.1.tar.gz.

File metadata

  • Download URL: stac_geoparquet-0.8.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stac_geoparquet-0.8.1.tar.gz
Algorithm Hash digest
SHA256 191203fabe6a8a3478f61cf0b465356ebb5757c16b79da13286505d8223bcb32
MD5 aba810f9dc6626864c8b2a615271c078
BLAKE2b-256 889a19f20b6a0e19363d5847e3122ce8e9464ce8a9025b96f40962f485e7e8de

See more details on using hashes here.

Provenance

The following attestation bundles were made for stac_geoparquet-0.8.1.tar.gz:

Publisher: publish.yml on stac-utils/stac-geoparquet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stac_geoparquet-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: stac_geoparquet-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stac_geoparquet-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 907a2431e8817321cad575ed6b23716ed95cf0dcb9a76db52bf6700255d1b9a7
MD5 d19a89906858ea7d6e1b37bea965c4e2
BLAKE2b-256 189b4b50775c9f2b6ed2ad9646a2c2180a1e44d951c36ded0d4265e76f873d3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for stac_geoparquet-0.8.1-py3-none-any.whl:

Publisher: publish.yml on stac-utils/stac-geoparquet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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