Skip to main content

Module measure

Module measure 

Source
Expand description

Sample-encode measurement: push a deterministic sample of source features through the real stt-core encoder (+ zstd) to replace formula-based size estimates with measured bytes.

The loader retains a stride sample of full geometries and property values (crate::loader::SampledFeature); measure_sample groups the dominant geometry kind into ONE synthetic tile layer, encodes it through stt_core::arrow_tile::encode_tile_with (the production encoder, driven by an explicit EncoderConfig so no process-globals are touched), zstd- compresses the payload, and attributes per-column costs by re-encoding each column alone — the same fair-share method stt-core’s point_column_stats example uses.

Structs§

ColumnCost
Compressed cost of one encoded tile column.
MeasureSettings
Encoder/compression settings for a sample measurement — the same levers a real stt-build run exposes (--zstd-level, --quantize-coords, --quantize-attrs-auto).
MeasuredEncoding
Measured encoder output for a sample: real compressed bytes per feature plus per-column cost attribution.

Functions§

measure_sample
Measure the real encoded + compressed size of a loader sample.