[GRASS-SVN] r52854 - grass/trunk/vector/v.generalize
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 23 01:32:23 PDT 2012
Author: mmetz
Date: 2012-08-23 01:32:22 -0700 (Thu, 23 Aug 2012)
New Revision: 52854
Modified:
grass/trunk/vector/v.generalize/main.c
Log:
v.generalize: copy attributes by default
Modified: grass/trunk/vector/v.generalize/main.c
===================================================================
--- grass/trunk/vector/v.generalize/main.c 2012-08-23 08:12:54 UTC (rev 52853)
+++ grass/trunk/vector/v.generalize/main.c 2012-08-23 08:32:22 UTC (rev 52854)
@@ -54,7 +54,7 @@
struct Option *angle_thresh_opt, *degree_thresh_opt,
*closeness_thresh_opt;
struct Option *betweeness_thresh_opt;
- struct Flag *ca_flag;
+ struct Flag *notab_flag;
int with_z;
int total_input, total_output; /* Number of points in the input/output map respectively */
double thresh, alpha, beta, reduction, slide, angle_thresh;
@@ -226,10 +226,9 @@
where_opt = G_define_standard_option(G_OPT_DB_WHERE);
where_opt->guisection = _("Selection");
- ca_flag = G_define_flag();
- ca_flag->key = 'c';
- ca_flag->description = _("Copy attributes");
- ca_flag->guisection = _("Attributes");
+ notab_flag = G_define_standard_flag(G_FLG_V_TABLE);
+ notab_flag->description = _("Do not copy attributes");
+ notab_flag->guisection = _("Attributes");
/* options and flags parser */
if (G_parser(argc, argv))
@@ -355,7 +354,7 @@
/* copy tables here because method == NETWORK is complete and
* tables for Out may be needed for parse_filter_options() below */
- if (ca_flag->answer) {
+ if (!notab_flag->answer) {
if (method == NETWORK)
copy_tables_by_cats(&In, &Out);
else
More information about the grass-commit
mailing list