MapboxUtils (Docker)

This tool lets you easily create or update vector tilesets on Mapbox from your CSV files using command line. It can be especially handy if you need to periodically update some vector tileset (e.g. every day updates). It is alternative for Mapbox Studio where you can do almost same things manually. Under the hood the tool is using Mapbox Python API, ogr2ogr and tippecanoe utilites. Just pass your CSV file with WKT geometries, 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:

Use following command to get the image:

Available parameters

--inputfile /workdir/countries_wkt.csv
path of the input CSV file with geometry
--geomcolumn wkt
name of geometry column
--tilesetmapid cleveranalytics.14j1fhp2
Mapbox tilesetmapid. If not specified than random value is generated by Mapbox. Specify in case of updating an existing tileset.
--tilesetname countries_wkt-02ssft
Mapbox tilesetname. If not than specified than tilesetname is generated as combination of input file name and random hash. Specify in case of updating an existing tileset or if you need your own tilesetname. 
--layername countries_wkt
Mapbox layername. If not specified than same value as tilesetname is used. Specify in case of updating an existing tileset or if you need your own layername. 
--minzoom 5
Minimal zoom of the tileset
--maxzoom 15
Maximal zoom of the tileset


--fields "id:integer;name:string"
Specify fields and their types to be in the tileset
--mbtiles_params "drop-fraction-as-needed extend-zooms-if-still-dropping"
Parameters of MBTiles generation internally used by tippecanoe. Parameters can be found here
--mapboxtoken abcdefgah1234
Your Mapbox account token. Token needs to have following priviliges: TILESETS:WRITE, TILESETS:READ, TILESETS:LIST, UPLOADS:READ, UPLOADS:WRITE. Check for more information.

Running MapboxUtils

Create a new tileset without specifying tilesetname or layername

Create a new tileset and specify tilesetname and layername

Update existing tileset