#mvt #encoder #gis #coordinates #tinymvt

tinymvt

A lightweight library for encoding Mapbox Vector Tiles (MVT)

9 releases

Uses new Rust 2024

new 0.2.3 Apr 24, 2025
0.2.2 Apr 18, 2025
0.1.0 Mar 10, 2025
0.0.4 Feb 24, 2025
0.0.1 Oct 28, 2024

#116 in Geospatial

Download history 27/week @ 2025-01-20 8/week @ 2025-01-27 6/week @ 2025-02-03 220/week @ 2025-02-10 62/week @ 2025-02-17 121/week @ 2025-02-24 32/week @ 2025-03-03 190/week @ 2025-03-10 77/week @ 2025-03-17 25/week @ 2025-03-24 1/week @ 2025-04-07 365/week @ 2025-04-14 2109/week @ 2025-04-21

2,475 downloads per month

MIT license

28KB
657 lines

tinymvt-rs

codecov Crates.io Version

A lightweight Rust library for encoding Mapbox Vector Tiles (MVT)

License: MIT

Features

  • 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

Planned?

  • Decoder

Dependencies

~1–3MB
~43K SLoC