pub fn encode_pixel(elevation: f32) -> [u8; 3]Expand description
Encode a single elevation sample (metres) into GSI (R, G, B).
NaN encodes as the no-data sentinel (128, 0, 0). Finite values
are quantised to 0.01 m and stored as a 24-bit signed integer,
wrapping out-of-range values modulo 2²⁴ (matching the GSI spec).