#vector-tiles #mapbox-vector-tile #filtering #mvt #processing #slim #tool-for-processing #wrangler #attribute-based

bin+lib mvt-wrangler

A high-performance Rust tool for processing and transforming Mapbox Vector Tiles (MVT) with advanced filtering capabilities. Apply sophisticated spatial and attribute-based filters to slim down your tiles.

3 releases

Uses new Rust 2024

new 0.1.2 Feb 1, 2026
0.1.1 Sep 22, 2025
0.1.0 Sep 18, 2025

#235 in Geospatial

MIT license

73KB
1.5K SLoC

MVT Wrangler

Crates.io Version

A high-performance CLI tool for modifying Mapbox Vector Tile (MVT) archives with spatial and attribute filters.

We use this at KotobaMedia to make a Japan-oriented variant of Protomaps' tiles generated from OpenStreetMap without having to download and reprocess OpenStreetMap data from scratch.

Install

  • Binaries
  • Build: cargo install --path .

Run

mvt-wrangler <input.pmtiles> <output.pmtiles> [options]
  • --filter/-f <geojson>: Filter definition
  • --name/-n, --description/-N, --attribution/-A: TileJSON metadata overrides

Examples:

mvt-wrangler input.pmtiles output.pmtiles
mvt-wrangler input.pmtiles output.pmtiles --filter filters.geojson

Filtering

Filters are GeoJSON FeatureCollections describing where to evaluate layer-specific expressions. See FILTERING.md for operators and structure.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Dependencies

~33–51MB
~614K SLoC