[GRASS-SVN] r59118 - grass/trunk/display/d.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 21 13:19:55 PST 2014


Author: martinl
Date: 2014-02-21 13:19:55 -0800 (Fri, 21 Feb 2014)
New Revision: 59118

Modified:
   grass/trunk/display/d.vect/lines.c
   grass/trunk/display/d.vect/main.c
Log:
d.vect: 'zcolor' applicable only for point features include centroids or kernels


Modified: grass/trunk/display/d.vect/lines.c
===================================================================
--- grass/trunk/display/d.vect/lines.c	2014-02-21 20:16:56 UTC (rev 59117)
+++ grass/trunk/display/d.vect/lines.c	2014-02-21 21:19:55 UTC (rev 59118)
@@ -258,7 +258,7 @@
     G_debug(3, "\tdisplay feature %d, cat %d", line, cat);
     
     /* z height colors */
-    if (zcolors) {
+    if (zcolors && (ltype & GV_POINTS)) {
 	if (Rast_get_d_color(&Points->z[0], &red, &grn, &blu, zcolors) == 1)
 	    custom_rgb = TRUE;
 	else

Modified: grass/trunk/display/d.vect/main.c
===================================================================
--- grass/trunk/display/d.vect/main.c	2014-02-21 20:16:56 UTC (rev 59117)
+++ grass/trunk/display/d.vect/main.c	2014-02-21 21:19:55 UTC (rev 59118)
@@ -140,7 +140,7 @@
     
     zcol_opt = G_define_standard_option(G_OPT_M_COLR);
     zcol_opt->key = "zcolor";
-    zcol_opt->description = _("Colorize features according to z-coordinate");
+    zcol_opt->description = _("Colorize point or area features according to z-coordinate");
     zcol_opt->guisection = _("Colors");
 
     /* Lines */



More information about the grass-commit mailing list