Skip to main content

Module raster

Module raster 

Source
Expand description

Raster basemap archiver: XYZ/WMTS tile endpoints → PMTiles.

Downloads a tile pyramid from any {z}/{x}/{y} HTTP endpoint with polite rate limiting and a resumable on-disk cache, then packs the tiles into a PMTiles v3 archive with content deduplication. Supports hybrid pyramids (planet low zooms + one deep-zoom region) for basemap-drape demos.

Modules§

archive
Download a tile pyramid and pack it into a raster PMTiles archive.
cache
Resumable on-disk tile cache.
fetch
Polite HTTP tile fetching with retry and backoff.
pyramid
Tile pyramid enumeration for raster archive builds.
template
XYZ/WMTS URL template expansion.

Structs§

HttpFetcher
ureq-backed fetcher used by the CLI.
PyramidSpec
Zoom and spatial coverage for one raster build.
RasterBuildOptions
Options for one raster archive build.
RasterBuildStats
Summary of a completed raster build.
UrlTemplate
A validated tile URL template.

Functions§

build_raster_archive
Download every pyramid tile (resuming from cache_dir) and pack the archive at output.
run
Build a raster basemap archive from the tiles options describe and write it to output.