Skip to main content

encode_polygon

Function encode_polygon 

Source
pub fn encode_polygon(rings: &[Vec<(i32, i32)>]) -> Vec<u32>
Expand description

Encode MVT geometry commands for a polygon (single ring or multi-ring).

Each ring: MoveTo(1) + first point, LineTo(n-2) + remaining, ClosePath(1).