Skip to content

Instantly share code, notes, and snippets.

@mmcfarland
Last active July 20, 2018 01:33
Show Gist options
  • Save mmcfarland/5b3ec57991cb2d2c2a38f225d45de8e6 to your computer and use it in GitHub Desktop.
Save mmcfarland/5b3ec57991cb2d2c2a38f225d45de8e6 to your computer and use it in GitHub Desktop.
PWD Parcels to Vector Tiles
# Shapefile in state plane to geojson wgs84
docker run -v $(pwd):/data -i fuzzytolerance/gdal ogr2ogr -f "GeoJSON" parcels.geojson PWD_PARCELS.shp -s_srs EPSG:2272 -t_srs EPSG:4326
# Geojson to directory of uncompressed vector tiles
docker run -it -v $(pwd):/tmp klokantech/tippecanoe tippecanoe --no-feature-limit --no-tile-size-limit --no-tile-compression --minimum-zoom=11 --maximum-zoom=15 --exclude-all --drop-fraction-as-needed --output-to-directory /tmp/tiles -L parcels:/tmp/parcels.geojson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment