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§
- Column
Cost - Compressed cost of one encoded tile column.
- Measure
Settings - Encoder/compression settings for a sample measurement — the same levers a
real
stt-buildrun exposes (--zstd-level,--quantize-coords,--quantize-attrs-auto). - Measured
Encoding - 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.