Skip to main content

Crate stt_build

Crate stt_build 

Source
Expand description

Library facade for the stt-build crate.

The CLI binary lives at src/main.rs; this lib target exposes the same modules so integration tests under tests/ and external probes can drive the pipeline programmatically.

Re-exports§

pub use tiler::encode_single_tile;
pub use tiler::encode_single_tile_counted;

Modules§

build_options
Shared flag → config parsing (--temporal-bucket, --vector-group, --quantize-*, per-tile budgets, attribute filters) used by both the stt-build CLI and the stt-serve dynamic server, so a live-served tile is configured byte-identically to one built offline. Shared flag → config parsing used by BOTH the stt-build CLI and the stt-serve dynamic server.
clip
Trajectory clipping for spatiotemporal tile distribution
columnar
Build Arrow ColumnarLayers from parsed features and clipped segments.
input
GeoParquet input parsing and feature loading
quadbin
CARTO Quadbin cell encoding — the build-side inverse of the TS decoder in packages/deck.gl/src/quadbin-cell.ts.
simplify
Line simplification for lower zoom levels
style_hints
Build-time style_hints collection (--style-hints): bounded per-property value sampling + layer-kind counting over the loaded features, feeding the generic profiler in stt_optimize::analysis::properties. Build-time style_hints collection (stt-build --style-hints).
summary
Build the server-aggregated summary tier alongside the raw tier.
tiler
Tile generation: clip trajectories, bucket features spatially and temporally, and emit Arrow ColumnarLayers per tile.