[GRASS-SVN] r73673 - grass/trunk/vector/v.generalize
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 13 07:07:29 PST 2018
Author: mmetz
Date: 2018-11-13 07:07:29 -0800 (Tue, 13 Nov 2018)
New Revision: 73673
Modified:
grass/trunk/vector/v.generalize/main.c
Log:
v.generalize: +warning about ignored where and cats options; reduce compiler warnings
Modified: grass/trunk/vector/v.generalize/main.c
===================================================================
--- grass/trunk/vector/v.generalize/main.c 2018-11-13 15:07:24 UTC (rev 73672)
+++ grass/trunk/vector/v.generalize/main.c 2018-11-13 15:07:29 UTC (rev 73673)
@@ -358,6 +358,10 @@
if (layer > 0)
cat_list = Vect_cats_set_constraint(&In, layer,
where_opt->answer, cat_opt->answer);
+ else if (where_opt->answer || cat_opt->answer) {
+ G_warning(_("No layer selected, '%s' and '%s' options are ignored"),
+ where_opt->key, cat_opt->key);
+ }
if (method == DISPLACEMENT) {
/* modifies only lines, all other features including boundaries are preserved */
More information about the grass-commit
mailing list