#tile #mapbox #vector #serialization #mvt #tags #geometry

tinymvt

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

3 releases

new 0.0.3 Feb 16, 2025
0.0.2 Feb 13, 2025
0.0.1 Oct 28, 2024

#897 in Algorithms

Download history 67/week @ 2024-10-29 4/week @ 2024-11-05 10/week @ 2024-11-12 11/week @ 2024-11-19 1/week @ 2024-11-26 7/week @ 2024-12-03 32/week @ 2024-12-10 5/week @ 2024-12-17 29/week @ 2025-01-21 6/week @ 2025-01-28 12/week @ 2025-02-04 240/week @ 2025-02-11

287 downloads per month

MIT license

25KB
578 lines

tinymvt-rs

codecov Crates.io Version

A minimal Rust toolkit 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 IDs) and XYZ tile coordinates

Dependencies

~1.7–4MB
~56K SLoC