[GRASS-SVN] r56234 - grass/trunk/vector/v.extrude
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 13 03:24:30 PDT 2013
Author: martinl
Date: 2013-05-13 03:24:30 -0700 (Mon, 13 May 2013)
New Revision: 56234
Modified:
grass/trunk/vector/v.extrude/main.c
grass/trunk/vector/v.extrude/v.extrude.html
Log:
v.extrude: copy attribute tables
Modified: grass/trunk/vector/v.extrude/main.c
===================================================================
--- grass/trunk/vector/v.extrude/main.c 2013-05-13 10:22:22 UTC (rev 56233)
+++ grass/trunk/vector/v.extrude/main.c 2013-05-13 10:24:30 UTC (rev 56234)
@@ -326,6 +326,13 @@
db_shutdown_driver(driver);
}
+ G_important_message(_("Copying attribute table..."));
+ if (field < 0)
+ Vect_copy_tables(&In, &Out, 0);
+ else
+ Vect_copy_table_by_cat_list(&In, &Out, field, field, NULL,
+ GV_1TABLE, cat_list);
+
Vect_build(&Out);
/* header */
Modified: grass/trunk/vector/v.extrude/v.extrude.html
===================================================================
--- grass/trunk/vector/v.extrude/v.extrude.html 2013-05-13 10:22:22 UTC (rev 56233)
+++ grass/trunk/vector/v.extrude/v.extrude.html 2013-05-13 10:24:30 UTC (rev 56234)
@@ -30,8 +30,9 @@
applies for the lines.
<p>
-<em>v.extrude</em> modifies only features geometry, attribute data
-remain untouched.
+<em>v.extrude</em> modifies only features geometry. Feature categories
+remain untouched and attribute data is copied from input vector map to
+the output.
<p>
By default, all features (including features without category) from
More information about the grass-commit
mailing list