[GRASS-SVN] r59065 - grass/trunk/display/d.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 16 03:02:42 PST 2014
Author: martinl
Date: 2014-02-16 03:02:42 -0800 (Sun, 16 Feb 2014)
New Revision: 59065
Modified:
grass/trunk/display/d.vect/shape.c
Log:
d.vect: add warnings about mutually exclusive color options
Modified: grass/trunk/display/d.vect/shape.c
===================================================================
--- grass/trunk/display/d.vect/shape.c 2014-02-16 10:20:23 UTC (rev 59064)
+++ grass/trunk/display/d.vect/shape.c 2014-02-16 11:02:42 UTC (rev 59065)
@@ -58,7 +58,12 @@
/* fisrt search for color table */
have_colors = Vect_read_colors(Vect_get_name(Map), Vect_get_mapset(Map),
&colors);
-
+ if (have_colors && rgb_column) {
+ G_warning(_("Both color table and <%s> option detected. "
+ "Color table will ignored."), "rgb_column");
+ have_colors = FALSE;
+ }
+
if (rgb_column) {
/* read RRR:GGG:BBB color strings from table */
db_CatValArray_init(&cvarr_rgb);
@@ -189,6 +194,11 @@
G_warning(_("Vector map is not 3D. Unable to colorize features based on z-coordinates."));
z_style = NULL;
}
+ else if (rgb_column) {
+ G_warning(_("Options <%s> and <%s> are mutually exclusive. "
+ "Option <%s> will be ignored."), "zcolor", "rgb_column", "zcolor");
+ z_style = NULL;
+ }
else {
Vect_get_map_box(Map, &box);
Rast_make_fp_colors(&zcolors, z_style, box.B, box.T);
More information about the grass-commit
mailing list