[GRASS-SVN] r58357 - grass/trunk/display/d.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 2 10:47:57 PST 2013
Author: martinl
Date: 2013-12-02 10:47:56 -0800 (Mon, 02 Dec 2013)
New Revision: 58357
Modified:
grass/trunk/display/d.vect/main.c
grass/trunk/display/d.vect/opt.c
grass/trunk/display/d.vect/plot.h
Log:
d.vect: remove `display=attr` attributes are display when `attrcol` is given
Modified: grass/trunk/display/d.vect/main.c
===================================================================
--- grass/trunk/display/d.vect/main.c 2013-12-02 18:44:00 UTC (rev 58356)
+++ grass/trunk/display/d.vect/main.c 2013-12-02 18:47:56 UTC (rev 58357)
@@ -86,17 +86,16 @@
display_opt->required = YES;
display_opt->multiple = YES;
display_opt->answer = "shape";
- display_opt->options = "shape,cat,topo,vert,dir,attr,zcoor";
+ display_opt->options = "shape,cat,topo,vert,dir,zcoor";
display_opt->description = _("Display");
desc = NULL;
G_asprintf(&desc,
- "shape;%s;cat;%s;topo;%s;vert;%s;dir;%s;attr;%s;zcoor;%s",
+ "shape;%s;cat;%s;topo;%s;vert;%s;dir;%s;zcoor;%s",
_("Display geometry of features"),
_("Display category numbers of features"),
_("Display topology information (nodes, edges)"),
_("Display verteces of features"),
_("Display direction of linear features"),
- _("Display selected attribute based on 'attrcolumn'"),
_("Display z-coordinate of features (only for 3D vector maps)"));
display_opt->descriptions = desc;
@@ -469,7 +468,7 @@
if (display & DISP_CAT)
stat += display_label(&Map, type, Clist, &lattr, chcat);
- if (display & DISP_ATTR)
+ if (attrcol_opt->answer)
stat += display_attr(&Map, type, attrcol_opt->answer, Clist, &lattr, chcat);
if (display & DISP_ZCOOR)
Modified: grass/trunk/display/d.vect/opt.c
===================================================================
--- grass/trunk/display/d.vect/opt.c 2013-12-02 18:44:00 UTC (rev 58356)
+++ grass/trunk/display/d.vect/opt.c 2013-12-02 18:47:56 UTC (rev 58357)
@@ -28,9 +28,6 @@
case 'd':
display |= DISP_DIR;
break;
- case 'a':
- display |= DISP_ATTR;
- break;
case 'z':
display |= DISP_ZCOOR;
break;
Modified: grass/trunk/display/d.vect/plot.h
===================================================================
--- grass/trunk/display/d.vect/plot.h 2013-12-02 18:44:00 UTC (rev 58356)
+++ grass/trunk/display/d.vect/plot.h 2013-12-02 18:47:56 UTC (rev 58357)
@@ -36,8 +36,7 @@
#define DISP_TOPO 0x04
#define DISP_VERT 0x08
#define DISP_DIR 0x10
-#define DISP_ATTR 0x20
-#define DISP_ZCOOR 0x40
+#define DISP_ZCOOR 0x20
#define RENDER_DP 2
#define RENDER_DPC 3
More information about the grass-commit
mailing list