brew tap osgeo/osgeo4mac
brew link autoconf automake
brew install gdal2
export PATH=$PATH:/usr/local/opt/gdal2/bin
export LDFLAGS=-L/usr/local/opt/gdal2/lib
export CPPFLAGS=-I/usr/local/opt/gdal2/include
ogr2ogr -f GeoJSON STATE_ASSEMBLY_2013.json STATE_ASSEMBLY_2013.tab
brew install tippecanoe
tippecanoe -f -pp -o STATE_ASSEMBLY_2013.mbtiles STATE_ASSEMBLY_2013.json
The -pp
argument is necessary to ensure that large polygons that cross tile boundaries are do not create vertical and horizontal visual artifacts.
npm install -g mbview
export MAPBOX_ACCESS_TOKEN='pk.0000.1111' # a mapbox public token
mbview STATE_ASSEMBLY_2013.mbtiles
Below is an example of the vertical and horizontal visual artifacts caused by large polygons that cross tile boundaries: