[GRASS-SVN] r54744 - grass-addons/grass6/vector/v.line.center

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 21 14:40:22 PST 2013


Author: msieczka
Date: 2013-01-21 14:40:22 -0800 (Mon, 21 Jan 2013)
New Revision: 54744

Modified:
   grass-addons/grass6/vector/v.line.center/v.line.center
Log:
Don't skip the 1st line.

Modified: grass-addons/grass6/vector/v.line.center/v.line.center
===================================================================
--- grass-addons/grass6/vector/v.line.center/v.line.center	2013-01-21 22:30:30 UTC (rev 54743)
+++ grass-addons/grass6/vector/v.line.center/v.line.center	2013-01-21 22:40:22 UTC (rev 54744)
@@ -116,7 +116,7 @@
 # Prepare the input for v.segment that will extract center points of each line,
 # excluding the first and the last offset.
 
-v.to.db --q -p map="$INPUT" layer=$LAYER type=line option=length column=dummy | awk -F "|" 'NR>1 {printf "%s","P "$1" "$1" "; printf "%.16f\n",$2/2}' > "${TMP}.${PROG}.offsets"
+v.to.db --q -p map="$INPUT" layer=$LAYER type=line option=length column=dummy | awk -F "|" '{printf "%s","P "$1" "$1" "; printf "%.16f\n",$2/2}' > "${TMP}.${PROG}.offsets"
 
 # Pipe offsets into v.segment. The output are points located exactly in the
 # center of the input lines.



More information about the grass-commit mailing list