#tile #serialization #mapbox #vector #mvt #tags #mercator

tinymvt

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

5 releases

new 0.1.0 Mar 10, 2025
0.0.4 Feb 24, 2025
0.0.3 Feb 16, 2025
0.0.2 Feb 13, 2025
0.0.1 Oct 28, 2024

#687 in Algorithms

Download history 13/week @ 2024-11-13 8/week @ 2024-11-20 4/week @ 2024-11-27 10/week @ 2024-12-04 27/week @ 2024-12-11 4/week @ 2024-12-18 33/week @ 2025-01-22 2/week @ 2025-01-29 12/week @ 2025-02-05 259/week @ 2025-02-12 111/week @ 2025-02-19 46/week @ 2025-02-26

428 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

TODO?

  • Decoder

Author

Taku Fukada

Dependencies

~1–3MB
~43K SLoC