[GRASS-SVN] r68720 - grass/trunk/raster/r.to.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 21 12:37:13 PDT 2016
Author: mmetz
Date: 2016-06-21 12:37:13 -0700 (Tue, 21 Jun 2016)
New Revision: 68720
Modified:
grass/trunk/raster/r.to.vect/main.c
Log:
r.to.vect: -v and -b flags are mutually exclusive, disable -v flag as for other cases
Modified: grass/trunk/raster/r.to.vect/main.c
===================================================================
--- grass/trunk/raster/r.to.vect/main.c 2016-06-21 13:48:59 UTC (rev 68719)
+++ grass/trunk/raster/r.to.vect/main.c 2016-06-21 19:37:13 UTC (rev 68720)
@@ -141,6 +141,11 @@
G_warning(_("Raster is not CELL, '-v' flag ignored, raster values will be lost."));
value_flag = 0;
}
+ if (value_flag && no_topol->answer) {
+ G_warning(_("Vector topology is required for raster values as categories,"
+ " '-v' flag ignored, raster values will be lost."));
+ value_flag = 0;
+ }
if (!value_flag && notab_flag) {
G_warning(_("Categories will be unique sequence, raster values will be lost."));
More information about the grass-commit
mailing list