Skip to content
Snippets Groups Projects
Commit 018fd64d authored by Nick Bearson's avatar Nick Bearson
Browse files

minor fix for if there's other instances of directions

parent 6f9ee8ed
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,10 @@ KML=`basename $KMZ | sed s:.kmz:.kml:` ...@@ -20,10 +20,10 @@ KML=`basename $KMZ | sed s:.kmz:.kml:`
PNG=`basename $KMZ`.png PNG=`basename $KMZ`.png
GTIFF=`basename $KMZ | sed s:.kmz:.tif:` GTIFF=`basename $KMZ | sed s:.kmz:.tif:`
north=`grep "north" ${KML} | sed s:\<north\>::g | sed s:\</north\>::g` north=`grep "<north>" ${KML} | sed s:\<north\>::g | sed s:\</north\>::g`
south=`grep "south" ${KML} | sed s:\<south\>::g | sed s:\</south\>::g` south=`grep "<south>" ${KML} | sed s:\<south\>::g | sed s:\</south\>::g`
west=`grep "west" ${KML} | sed s:\<west\>::g | sed s:\</west\>::g` west=`grep "<west>" ${KML} | sed s:\<west\>::g | sed s:\</west\>::g`
east=`grep "east" ${KML} | sed s:\<east\>::g | sed s:\</east\>::g` east=`grep "<east>" ${KML} | sed s:\<east\>::g | sed s:\</east\>::g`
gdal_translate -of GTiff -a_ullr $west $north $east $south $PNG $GTIFF gdal_translate -of GTiff -a_ullr $west $north $east $south $PNG $GTIFF
rm $KML $PNG rm $KML $PNG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment