Skip to content

Instantly share code, notes, and snippets.

@aaronlidman
Created July 27, 2012 07:28
Show Gist options
  • Save aaronlidman/3186651 to your computer and use it in GitHub Desktop.
Save aaronlidman/3186651 to your computer and use it in GitHub Desktop.
quick reproj to 900913 and shapeindex
#!/bin/bash
for shp in $(find . -name \*.shp);
do
ogr2ogr "$(dirname $shp)/$(basename $shp .shp)-900913.shp" $shp -skipfailures -t_srs EPSG:900913 -clipsrc -180 -85.0511 180 85.0511
shapeindex "$(dirname $shp)/$(basename $shp .shp)-900913.shp"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment