pub struct Params<'a> {
pub dataset: Dataset,
pub tzbb_release: &'a str,
pub epsilon_m: f64,
pub quant_bits: u32,
pub grid_deg: f64,
pub codec: Codec,
pub simplify: SimplifyAlgorithm,
pub geom: GeomEncoding,
pub density_weight_floor: Option<f64>,
}Expand description
The parameters of one encode run: they carry the recipe knobs plus the provenance recorded in the asset’s header.
Fields§
§dataset: DatasetThe dataset the features came from, recorded in the header as provenance.
tzbb_release: &'a strThe TZBB release tag recorded in the header (the rules snapshot and cache key).
epsilon_m: f64§quant_bits: u32The quantization bit width: 16, 24, or 32.
grid_deg: f64The grid cell size in degrees, within 0.1–45; fractional values (0.5, 4/3, …) are allowed.
codec: Codec§simplify: SimplifyAlgorithmThe simplification algorithm, applied by build_payload() and
recorded in the header either way.
geom: GeomEncodingThe arc-store encoding, delta+varint (the default) or fixed-width.
density_weight_floor: Option<f64>The population-density weight floor, recorded in the header as
provenance (None means unweighted). The weighting itself is
applied by the caller’s simplification pass (utz_build’s
encode_weighted()); this field only stamps the knob.