Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Created May 29, 2013 11:27
Show Gist options
  • Save rob-murray/5669621 to your computer and use it in GitHub Desktop.
Save rob-murray/5669621 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
@rob-murray
Copy link
Author

BTW; COORDINATE_PRECISION=2 is intended for OSGB e,n >> i'm assuming BNG here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment