Skip to content
OvertureMapsPublic

About

Creates Overture Maps Foundation manifest files for release cataloguing

Topics

Resources

Code of conduct

Contributing

Stars

41 stars

Watchers

1 watching

Forks

Repository files navigation

Overture STAC

License: MIT Publish Release

overture-stac generates, validates, and reconciles the STAC catalog for public Overture Maps releases. It ships as a Rust CLI.

Browse the catalog

Build

cargo build --release

Usage

Five subcommands (overture-stac --help for full listings):

  • build — walk the data bucket and write a full STAC catalog to disk. Defaults to all current releases. --generate-latest-ddb also writes and links latest.ddb (needs the DuckDB CLI); PR staging previews use it.
  • list-releases — print release IDs the data bucket currently exposes, newest first.
  • reconcile — compare the live catalog against the data bucket and report drift. --apply writes the fix; add --generate-latest-ddb to also publish latest.ddb (needs the DuckDB CLI).
  • refresh-root — recompute derived root state (the latest flag). With --generate-latest-ddb, also republish latest.ddb, its root link and the root duckdb SQL when latest changes; this needs the DuckDB CLI on PATH (or DUCKDB_BIN) and is checked up front. Without the flag, a changed latest removes the latest.ddb link and the duckdb SQL.
  • validate — run JSON-schema + link-integrity + Overture-specific checks against a built catalog (local dir, remote URL, or object-store URI).

Typical single-release build:

cargo run --release -- build \
  --release-version 2026-07-22.0 \
  --schema-version 1.18.0 \
  --output ./public_releases \
  --concurrency 6

Pass --debug for a fast run (a few fragments per type). The build subcommand reads from the Overture public bucket over object_store, which supports s3://, gs://, az://, and http(s):// URIs. The CLI defaults to Overture's S3 location, but the underlying core is cloud-agnostic.

Item index

Each non-empty release catalog advertises its existing collections.parquet through a rel: "index" link:

{
  "rel": "index",
  "href": "https://stac.overturemaps.org/2026-10-21.0/collections.parquet",
  "type": "application/vnd.apache.parquet",
  "title": "STAC Item index (GeoParquet)"
}

The index contains one row per STAC Item, not per Overture feature. Clients can discover it by its relation and media type, then query fragment bounds and asset URLs without fetching every Item JSON. Existing child and Item links remain unchanged. Empty releases do not advertise an index; debug builds index only their sampled Items.

For example, find candidate building files around San Francisco with DuckDB. Replace the URL with the index href from the chosen release:

SELECT assets.aws.href AS data_href
FROM read_parquet(
  'https://stac.overturemaps.org/2026-10-21.0/collections.parquet'
)
WHERE collection = 'building'
  AND bbox.xmin <= -122.35 AND bbox.xmax >= -122.55
  AND bbox.ymin <= 37.85 AND bbox.ymax >= 37.70;

Read the returned data files and apply feature-level filters to obtain the actual buildings. The index only identifies files whose bounds overlap the requested area.

Query the latest release with DuckDB

The root catalog.json links to latest.ddb, a DuckDB database with one view per feature type over the latest release, and embeds the SQL that built it in its duckdb field. Either attach the prebuilt file or recreate the views locally:

curl -s https://stac.overturemaps.org/catalog.json | jq -r .duckdb | duckdb overture.db
duckdb overture.db -c "LOAD spatial; SELECT count(*) FROM place"

just duckdb runs the first command for you.

Migrating from 1.4.0

overture-stac 2.x replaced the pure-Python 1.4.0 release with a Rust core plus thin Python bindings; those bindings have since been retired in favor of the Rust CLI/crate only. The 1.4.0 API is not preserved. The old entry points map as follows:

  • gen-stac is replaced by the overture-stac CLI, distributed through the Rust crate: cargo install overture-stac.
  • The OvertureRelease class is replaced by the CLI's build, validate, and list-releases subcommands.

Development

A justfile collects the common commands. Install just with brew install just and run just to see recipes. just check runs cargo fmt --check, cargo clippy, and cargo test, the same checks CI would run.

About

Creates Overture Maps Foundation manifest files for release cataloguing

Topics

Resources

Code of conduct

Contributing

Stars

41 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages