Jelajahi Sumber

v.build.polylines: code cosmetics, manual

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52840 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 tahun lalu
induk
melakukan
03bb99055e

+ 5 - 4
vector/v.build.polylines/main.c

@@ -6,9 +6,9 @@
  *               Major rewrite by Radim Blazek, October 2002
  *               Glynn Clements <glynn gclements.plus.com>, Markus Neteler <neteler itc.it>
  *               Martin Landa <landa.martin gmail.com> (cats)
- *               Markus Metz (geometry type management)
+ *               Markus Metz (geometry type management, cats, attributes)
  * PURPOSE:      
- * COPYRIGHT:    (C) 2002-2011 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2002-2012 by the GRASS Development Team
  *
  *               This program is free software under the GNU General Public
  *               License (>=v2). Read the file COPYING that comes with GRASS
@@ -183,7 +183,7 @@ int main(int argc, char **argv)
     /* Step over all lines in binary map */
     polyline = 0;
     nlines = 0;
-    
+
     copy_tables = (write_cats != NO_CATS);
 
     for (line = 1; line <= Vect_get_num_lines(&map); line++) {
@@ -196,7 +196,8 @@ int main(int argc, char **argv)
 	    /* copy points to output as they are, with cats */
 	    Vect_read_line(&map, points, Cats, line);
 	    Vect_write_line(&Out, ltype, points, Cats);
-	    copy_tables = 1;
+	    if (Cats->n_cats > 0)
+		copy_tables = 1;
 	    continue;
 	}
 

+ 1 - 1
vector/v.build.polylines/v.build.polylines.html

@@ -78,6 +78,6 @@ Leverhulme Special Research Fellowship at University College London.
 Mark Lake, Institute of Archaeology, University College London.<br> 
 Major rewrite by Radim Blazek, October 2002<br>
 Category mode added by Martin Landa, FBK-irst, Trento, Italy, October 2007<br>
-Support for different line types by Markus Metz
+Support for categories, attributes, and different line types by Markus Metz
 
 <p><i>Last changed: $Date$</i>