[GRASS-SVN] r74409 - grass/branches/releasebranch_7_6/vector/v.generalize

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 20 14:40:25 PDT 2019


Author: mmetz
Date: 2019-04-20 14:40:25 -0700 (Sat, 20 Apr 2019)
New Revision: 74409

Modified:
   grass/branches/releasebranch_7_6/vector/v.generalize/main.c
Log:
v.generalize: +warning about ignored where and cats options (backport trunk r73673)

Modified: grass/branches/releasebranch_7_6/vector/v.generalize/main.c
===================================================================
--- grass/branches/releasebranch_7_6/vector/v.generalize/main.c	2019-04-20 09:46:08 UTC (rev 74408)
+++ grass/branches/releasebranch_7_6/vector/v.generalize/main.c	2019-04-20 21:40:25 UTC (rev 74409)
@@ -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