Skip to main content

encode_linestring

Function encode_linestring 

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

Encode MVT geometry commands for a linestring.

Emits MoveTo(1) for the first point, then LineTo(n-1) for the rest.