Skip to main content

decode_mvt

Function decode_mvt 

Source
pub fn decode_mvt(
    bytes: &[u8],
    tile_id: &TileId,
    options: &MvtDecodeOptions,
) -> Result<DecodedVectorTile, MvtError>
Expand description

Decode an MVT (PBF) binary payload into per-layer feature collections.

Coordinates are transformed from tile-local integer positions to WGS-84 geographic coordinates using tile_id to derive the tile’s geographic bounds.