瀏覽代碼

build polylines: do not modify points and centroids

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45394 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 年之前
父節點
當前提交
eaf31ab85f
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      vector/v.build.polylines/main.c

+ 11 - 0
vector/v.build.polylines/main.c

@@ -67,6 +67,10 @@
 
    1) Portable
 
+   TODO
+   
+   combine either lines or boundaries, but not lines with boundaries
+
    ********************************************************************** */
 
 #include <stdlib.h>
@@ -175,6 +179,13 @@ int main(int argc, char **argv)
 	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;