Created
July 12, 2012 23:09
-
-
Save oeon/3101727 to your computer and use it in GitHub Desktop.
trim rasters from ogrinfo extent
This file contains 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 | |
FILES=$(ls *.shp); | |
for FILE in $FILES | |
cat list.txt | while read CMD; | |
do | |
gdal_translate -projwin ${CMD} -of GTiff ${FILE} ./out/${FILE} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment