- brew install gdal
- brew install tippecanoe
Shapefiles from Swiss sources might be available in EPSG:2056 (LV95) projection. To use these files in Mapbox, they need to be converted to EPSG:4326:
ogr2ogr -f "ESRI Shapefile" reprojected.shp original.shp -t_srs EPSG:4326 -s_srs EPSG:2056
In order to change zoom levels or other things, we want to use tippecanoe which requires a GeoJSON file. We need to convert our re-projected file:
ogr2ogr GeoJSON output.json reprojected.shp -progress -f
Now we can use tippecanoe to modify zoom levels. For more options, see: https://github.com/mapbox/tippecanoe
tippecanoe -o final.mbtiles output.json -z 14 -Z 6 -f