Skip to main content

Crate geolith_tiles_builder

Crate geolith_tiles_builder 

Source
Expand description

geolith-tiles-builder: tiles from OSM and Overture Maps.

One module per output type:

  • the vector tile build, run, writes a protomaps-schema PMTiles archive from Overture Parquet and OSM,
  • terrain writes Terrain-RGB PMTiles from GeoTIFF DEMs,
  • raster archives a raster tile service as PMTiles,
  • splat writes an OGC 3D Tiles tileset from a Gaussian splat,
  • reconstruct turns drone video into a splat.

The vector build runs in four phases:

  1. Read + Process: discover Parquet files, read features, route to layer processors, project to world coordinates, clip to tiles, snap to tile-local integers, encode MVT geometry commands.
  2. External Sort: buffer SortEntry items, flush sorted chunks to disk when the buffer exceeds a threshold.
  3. K-Way Merge: merge all sorted chunks into globally sorted order.
  4. PMTiles Write: group entries by tile, encode MVT tiles, gzip compress, write the archive in Hilbert order.

Re-exports§

pub use config::DEFAULT_MAX_GEOMETRY_FAILURES;
pub use config::Reuse;
pub use config::TilesConfig;

Modules§

config
What one tile build reads, writes and keeps.
conflation
GERS-based conflation for deduplicating OSM and Overture features.
error
Typed error types for geolith library modules.
geometry
Geometry processing — re-exports from geolith plus pipeline-specific extensions.
layers
Tile layer definitions and feature processing.
output
PMTiles output — archive writing, Hilbert encoding, deduplication.
progress
Progress bar helpers using indicatif.
raster
Raster basemap archiver: XYZ/WMTS tile endpoints → PMTiles.
reconstruct
Drone-video photogrammetry pipeline: video → 3D Gaussian Splatting → 3D Tiles.
sort
External merge sort engine for the tile pipeline.
source
Overture Maps Parquet data reading, filtering, and source routing.
splat
Gaussian splat pipeline: 3DGS PLY to OGC 3D Tiles.
terrain
Drone-capture terrain pipeline: GeoTIFF DEM to Terrain-RGB PMTiles.
tile
Tile encoding — re-exports from geolith plus pipeline-specific post-processing.
timing
Planetiler-style phase timing and formatting.

Enums§

TilesError
Why a vector tile build failed.

Functions§

run
Build the vector tile archive config describes: read, sort, merge and write the protomaps-schema PMTiles file.