Skip to content

Instantly share code, notes, and snippets.

@tkfm-yamaguchi
Forked from rob-murray/shape_to_geojson.txt
Created February 19, 2018 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkfm-yamaguchi/1150bffc7db4d58a8425e9c4f4a92ac8 to your computer and use it in GitHub Desktop.
Save tkfm-yamaguchi/1150bffc7db4d58a8425e9c4f4a92ac8 to your computer and use it in GitHub Desktop.
GDAL shape 2 geoJSON with generalisation and reduced precision
/Library/Frameworks/GDAL.framework/Versions/1.9/Programs/ogr2ogr -f GeoJSON -simplify 100 -lco COORDINATE_PRECISION=2 ~/Downloads/mbtiles/nat_park_region_100x.json ~/Downloads/mbtiles/nat_park_region.shp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment