Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tool is an alternative to Mapbox Studio and lets you easily create or update vector tilesets on Mapbox from your CSV, SHP or GeoJSON files using command line. It can be especially handy if you need to:

...

Under the hood the tool is using Mapbox Python API, ogr2ogr and tippecanoe utilites. Just pass your CSV file with WKT geometriesgeofile, specify some parameters and you are done. 

...

MapboxUtils is distributed as a Docker image so you need to have Docker platform installed. You can get Docker here

MapboxUtils is publicly available on Docker hub: https://hub.docker.com/r/clevermaps/mapbox-utils

...

Create a new tileset from SHP file

Code Block

docker run -t -v /home/user/clevermaps/mapbox-utils:/workdir clevermaps/mapbox-utils:latest --inputfile /workdir/countries.shp --pkeycolumn id --minzoom 5 --maxzoom 10 --mapboxtoken abcdefgah1234

...