[GRASS-SVN] r51553 - grass/trunk/vector/v.transform
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 27 06:40:32 EDT 2012
Author: mmetz
Date: 2012-04-27 03:40:32 -0700 (Fri, 27 Apr 2012)
New Revision: 51553
Modified:
grass/trunk/vector/v.transform/main.c
Log:
add new flag to skip topology building
Modified: grass/trunk/vector/v.transform/main.c
===================================================================
--- grass/trunk/vector/v.transform/main.c 2012-04-27 10:26:55 UTC (rev 51552)
+++ grass/trunk/vector/v.transform/main.c 2012-04-27 10:40:32 UTC (rev 51553)
@@ -47,7 +47,7 @@
struct Option *vold, *vnew, *xshift, *yshift, *zshift,
*xscale, *yscale, *zscale, *zrot, *columns, *table, *field;
- struct Flag *tozero_flag, *print_mat_flag, *swap_flag;
+ struct Flag *tozero_flag, *print_mat_flag, *swap_flag, *no_topo;
char mon[4], date[40], buf[1000];
struct Map_info Old, New;
@@ -86,6 +86,10 @@
swap_flag->description =
_("Swap coordinates x, y and then apply other parameters");
+ no_topo = G_define_flag();
+ no_topo->key = 'b';
+ no_topo->description = _("Do not build topology for output");
+
vold = G_define_standard_option(G_OPT_V_INPUT);
field = G_define_standard_option(G_OPT_V_FIELD_ALL);
@@ -278,7 +282,8 @@
if (Vect_copy_tables(&Old, &New, 0))
G_warning(_("Failed to copy attribute table to output map"));
Vect_close(&Old);
- Vect_build(&New);
+ if (!no_topo->answer)
+ Vect_build(&New);
Vect_get_map_box(&New, &box);
G_verbose_message(_("New vector map <%s> boundary coordinates:"),
More information about the grass-commit
mailing list