[GRASS-SVN] r52475 - grass-addons/grass6/raster/r.out.kap_template
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 29 20:12:45 PDT 2012
Author: hamish
Date: 2012-07-29 20:12:45 -0700 (Sun, 29 Jul 2012)
New Revision: 52475
Modified:
grass-addons/grass6/raster/r.out.kap_template/r.out.kap_template
Log:
fix default bounding polygon box
Modified: grass-addons/grass6/raster/r.out.kap_template/r.out.kap_template
===================================================================
--- grass-addons/grass6/raster/r.out.kap_template/r.out.kap_template 2012-07-28 10:45:00 UTC (rev 52474)
+++ grass-addons/grass6/raster/r.out.kap_template/r.out.kap_template 2012-07-30 03:12:45 UTC (rev 52475)
@@ -542,15 +542,16 @@
se_long=`echo $RESULT | cut -f6 -d' ' | awk '{if ($1 <= 180.0) {print} else {print $1 - 360.0} }'`
sw_lat=`echo $RESULT | cut -f7 -d' '`
sw_long=`echo $RESULT | cut -f8 -d' ' | awk '{if ($1 <= 180.0) {print} else {print $1 - 360.0} }'`
- CNR1="0,0,$nw_lat,$nw_long"
- CNR2="$cols,0,$ne_lat,$ne_long"
- CNR3="$cols,$rows,$se_lat,$se_long"
- CNR4="0,$rows,$sw_lat,$sw_long"
else
# use four corners, NW then clockwise
eval `g.region -lg`
fi
+ CNR1="$nw_lat,$nw_long"
+ CNR2="$ne_lat,$ne_long"
+ CNR3="$se_lat,$se_long"
+ CNR4="$sw_lat,$sw_long"
+
echo "PLY/1,$CNR1" >> "$OUTFILE.hdr"
echo "PLY/2,$CNR2" >> "$OUTFILE.hdr"
echo "PLY/3,$CNR3" >> "$OUTFILE.hdr"
More information about the grass-commit
mailing list