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

just another way to do things

parent 720cc1d0
No related branches found
No related tags found
No related merge requests found
......@@ -10,12 +10,11 @@ set -e
KML=$1
PNG=$2
GTIFF=$3
GTIFF=`echo $KML | sed s:.kml:.tif:`
north=`grep "north" ${KML} | sed s:\<north\>::g | sed s:\</north\>::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`
east=`grep "east" ${KML} | sed s:\<east\>::g | sed s:\</east\>::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`
west=`grep "<west>" ${KML} | sed s:\<west\>::g | sed s:\</west\>::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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment