pub fn quantize(
x: f64,
y: f64,
bbox: [f64; 4],
order: u32,
) -> Option<(u32, u32)>Expand description
Quantize a real (x, y) to integer grid coordinates 0..2^order,
given the dataset’s overall bbox. Returns None if any input is non-finite
or the bbox is degenerate (zero width or height).