Skip to main content

Crate geolith_cli

Crate geolith_cli 

Source
Expand description

geolith — core pipeline for generating protomaps-schema PMTiles from Overture Maps Parquet data.

The pipeline 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 buffer exceeds 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 to PMTiles archive in Hilbert order.

Re-exports§

pub use geolith_dataset_builder as dataset;
pub use geolith_search_builder as geocoding;

Modules§

cli
Top-level command dispatch.
config
CLI configuration via clap.
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§

PipelineAction
Pipeline action selected from the configured output format.

Functions§

exit_code
The process exit code of an error: the code of a dataset::exit::Exit, else 1.
run
Run the command selected by the process arguments.
run_command
Dispatch an already-parsed cli::Command to its pipeline.
run_raster
Run the raster basemap archiver for a parsed cli::RasterArgs.
run_reconstruct
Run the drone-video photogrammetry pipeline for a parsed cli::ReconstructArgs.
run_splat_tiles
Build an OGC 3D Tiles tileset from a trained Gaussian splat PLY.
run_terrain
Build Terrain-RGB PMTiles from a GeoTIFF DEM.
run_with_config
Execute the pipeline with a pre-built Config.
select_action
Decide which pipeline action a config selects without executing it.