[GRASS-SVN] r45394 - grass/trunk/vector/v.build.polylines
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 13 06:02:52 EST 2011
Author: mmetz
Date: 2011-02-13 03:02:52 -0800 (Sun, 13 Feb 2011)
New Revision: 45394
Modified:
grass/trunk/vector/v.build.polylines/main.c
Log:
build polylines: do not modify points and centroids
Modified: grass/trunk/vector/v.build.polylines/main.c
===================================================================
--- grass/trunk/vector/v.build.polylines/main.c 2011-02-13 10:23:41 UTC (rev 45393)
+++ grass/trunk/vector/v.build.polylines/main.c 2011-02-13 11:02:52 UTC (rev 45394)
@@ -67,6 +67,10 @@
1) Portable
+ TODO
+
+ combine either lines or boundaries, but not lines with boundaries
+
********************************************************************** */
#include <stdlib.h>
@@ -175,6 +179,13 @@
if (type & GV_LINES)
nlines++;
+ /* copy points to output as they are, with cats */
+ if (type & GV_POINTS) {
+ 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])
continue;
More information about the grass-commit
mailing list