Skip to main content

Module osmium

Module osmium 

Source
Expand description

Optional osmium-tool integration for bbox-based PBF extraction.

When --bbox is passed and osmium is on $PATH, this module runs osmium extract to crop the planet PBF to just the target region. A cropped PBF is dramatically smaller (planet → regional extract), making both node collection and feature processing much faster.

If osmium is not installed, the pipeline falls back gracefully to processing the full PBF with in-memory bbox filtering.

Structs§

ExtractResult
Result of an osmium extract attempt.

Functions§

cleanup
Clean up an extracted PBF file.
try_extract
Try to extract a bbox region from a PBF file using osmium.
try_extract_with
try_extract with the name of the osmium program to run.