[GRASS-SVN] r73118 - grass/trunk/vector/v.vect.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 17 09:05:07 PDT 2018
Author: martinl
Date: 2018-08-17 09:05:07 -0700 (Fri, 17 Aug 2018)
New Revision: 73118
Modified:
grass/trunk/vector/v.vect.stats/main.c
Log:
v.vect.stats: define gui dependencies, see #3619
Modified: grass/trunk/vector/v.vect.stats/main.c
===================================================================
--- grass/trunk/vector/v.vect.stats/main.c 2018-08-17 14:44:41 UTC (rev 73117)
+++ grass/trunk/vector/v.vect.stats/main.c 2018-08-17 16:05:07 UTC (rev 73118)
@@ -138,7 +138,7 @@
point_opt->key = "points";
point_opt->description = _("Name of existing vector map with points");
/* point_opt->guisection = _("Required"); */
-
+
area_opt = G_define_standard_option(G_OPT_V_INPUT);
area_opt->key = "areas";
area_opt->description = _("Name of existing vector map with areas");
@@ -226,7 +226,18 @@
_("Print output to stdout, do not update attribute table");
print_flag->description = _("First column is always area category");
print_flag->guisection = _("Print");
-
+
+ /* GUI dependencies */
+ G_asprintf((char **) &(point_opt->guidependency), "%s,%s,%s",
+ point_field_opt->key, point_where_opt->key, point_column_opt->key);
+ G_asprintf((char **) &(point_field_opt->guidependency), "%s,%s",
+ point_where_opt->key, point_column_opt->key);
+ G_asprintf((char **) &(area_opt->guidependency), "%s,%s,%s,%s",
+ area_field_opt->key, area_where_opt->key,
+ count_column_opt->key, stats_column_opt->key);
+ G_asprintf((char **) &(area_field_opt->guidependency), "%s,%s,%s",
+ area_where_opt->key, count_column_opt->key, stats_column_opt->key);
+
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
More information about the grass-commit
mailing list