[GRASS-SVN] r30480 - grass/trunk/scripts/i.in.spotvgt

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 5 23:42:11 EST 2008


Author: hamish
Date: 2008-03-05 23:42:11 -0500 (Wed, 05 Mar 2008)
New Revision: 30480

Modified:
   grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt
Log:
remove non-portable 'echo -n'

Modified: grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt
===================================================================
--- grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt	2008-03-06 03:58:31 UTC (rev 30479)
+++ grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt	2008-03-06 04:42:11 UTC (rev 30480)
@@ -128,11 +128,7 @@
  #echo $SOUTHCORNER
  #echo $RESOLUTION
 
- echo -n "<VRTDataset rasterXSize=" >> $1
- echo -n "\"$XSIZE\"" >> $1
- echo -n " rasterYSize=" >> $1
- echo "\"$YSIZE\">" >> $1
-
+ echo "<VRTDataset rasterXSize=\"$XSIZE\" rasterYSize=\"$YSIZE\">" >> "$1"
  echo " <SRS>GEOGCS[&quot;wgs84&quot;,DATUM[&quot;WGS_1984&quot;,SPHEROID[&quot;wgs84&quot;,6378137,298.257223563],TOWGS84[0.000,0.000,0.000]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;degree&quot;,0.0174532925199433]]</SRS>" >> $1
  echo "   <GeoTransform>$WESTCORNER, $RESOLUTION, 0.0000000000000000e+00, $NORTHCORNER, 0.0000000000000e+00, -$RESOLUTION</GeoTransform>" >> $1
  echo "   <VRTRasterBand dataType=\"Byte\" band=\"1\">" >> $1



More information about the grass-commit mailing list