Skip to main content

Module mvt

Module mvt 

Source
Expand description

MVT protobuf encoding via prost.

Encodes grouped TileFeatures into a single MVT tile (protobuf bytes). Key/value tables are deduplicated per-layer for compact encoding.

Modules§

proto
Rust types for the Mapbox Vector Tile protobuf schema, generated by prost.

Functions§

decode_commands
Decode MVT geometry commands into parts.
encode_linestring
Encode MVT geometry commands for a linestring.
encode_multilinestring
Encode MVT geometry commands for a multi-linestring.
encode_points
Encode MVT geometry commands for a point or multipoint.
encode_polygon
Encode MVT geometry commands for a polygon (single ring or multi-ring).
encode_tile
Encode a group of tile features (all belonging to the same tile) into MVT bytes.