#tile #mapbox #vector #serialization #encoder #mvt #tags

tinymvt

Simple library for serializing Mapbox Vector Tile (MVT) with minimal dependencies

1 unstable release

0.0.1 Oct 28, 2024

#6 in #mapbox

Download history 124/week @ 2024-10-25 21/week @ 2024-11-01 1/week @ 2024-11-08

146 downloads per month

MIT license

25KB
578 lines

tinymvt-rs

codecov

A simple Rust library providing a set of tools for serializing Mapbox Vector Tiles (MVT).

License: MIT

Includes the following utilities:

  • Protobuf (prost) data types for MVT
  • Geometry encoder
  • Tags encoder
  • Conversion between Web Mercator and geographic coordinates
  • Conversion between linear tile IDs (PMTiles-compliant Hilbert id) and XYZ tile IDs

Dependencies

~1.7–3.5MB
~54K SLoC