[GRASS-SVN] r35916 - grass-addons/vector/v.swathwidth

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 18 00:26:31 EST 2009


Author: hamish
Date: 2009-02-18 00:26:30 -0500 (Wed, 18 Feb 2009)
New Revision: 35916

Modified:
   grass-addons/vector/v.swathwidth/v.swathwidth
Log:
adaptive box height (helps when track turns corners)

Modified: grass-addons/vector/v.swathwidth/v.swathwidth
===================================================================
--- grass-addons/vector/v.swathwidth/v.swathwidth	2009-02-18 04:20:58 UTC (rev 35915)
+++ grass-addons/vector/v.swathwidth/v.swathwidth	2009-02-18 05:26:30 UTC (rev 35916)
@@ -114,7 +114,7 @@
       # how to do this???
       ## swath rectangle aspect ratio is arbitralily set to 10:1  (use distance opt??)
       #SW_HEIGHT=`echo "$SW_WIDTH" | awk '{print $1 * 0.10}'`
-      SW_HEIGHT=`echo "$GIS_OPT_DISTANCE $GIS_OPT_BEAMWIDTH" | awk '{print $1 * 1.25}'`
+      SW_HEIGHT=`echo "$GIS_OPT_DISTANCE $GIS_OPT_BEAMWIDTH" | awk '{print $1 * $2/2}'`
 
       #echo "coor=[$COOR] | w,h=[$SW_WIDTH],[$SW_HEIGHT] | angle=[$TRK_ANGLE]"
       v.mkgrid map="tmp_swathbox_$$" coor="$COOR" position=coor grid=1,1 \



More information about the grass-commit mailing list