Created
July 27, 2012 07:28
-
-
Save aaronlidman/3186651 to your computer and use it in GitHub Desktop.
quick reproj to 900913 and shapeindex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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