[GRASS-SVN] r46679 - grass/branches/releasebranch_6_4/vector/v.build.polylines

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 13 08:20:24 EDT 2011


Author: mmetz
Date: 2011-06-13 05:20:23 -0700 (Mon, 13 Jun 2011)
New Revision: 46679

Modified:
   grass/branches/releasebranch_6_4/vector/v.build.polylines/main.c
Log:
do not modify points or centroids

Modified: grass/branches/releasebranch_6_4/vector/v.build.polylines/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.build.polylines/main.c	2011-06-13 12:18:49 UTC (rev 46678)
+++ grass/branches/releasebranch_6_4/vector/v.build.polylines/main.c	2011-06-13 12:20:23 UTC (rev 46679)
@@ -178,6 +178,12 @@
 
 	if (type & GV_LINES)
 	    nlines++;
+	else {
+	    /* copy points to output as they are, with cats */
+	    Vect_read_line(&map, points, Cats, line);
+	    Vect_write_line(&Out, type, points, Cats);
+	    continue;
+	}
 
 	/* Skip line if already visited from another */
 	if (lines_visited[line])



More information about the grass-commit mailing list