Skip to main content

encode

Function encode 

Source
pub fn encode(feats: &[Feat], params: &Params<'_>) -> Result<Vec<u8>>
Expand description

Runs the full uniform-ε pipeline: topology → RDP → quantize → grid → serialize → compress. Spatially varying tolerance (population weighting) is a simplification concern, not a serialization one: build the topology yourself (topo::build_topology_weighted()) and use payload_from_topology() and finish() (see utz_build’s wrapper).

§Errors

The errors are the same as build_payload()’s.