[GRASS-dev] [GRASS GIS] #3122: d.legend.vect: possibility to change text of displayed labels and select labels to show/not show

GRASS GIS trac at osgeo.org
Tue Aug 9 04:18:35 PDT 2016


#3122: d.legend.vect: possibility to change text of displayed labels and select
labels to show/not show
-------------------------+-------------------------------------------------
  Reporter:  veroandreo  |      Owner:  grass-dev@…
      Type:              |     Status:  new
  enhancement            |
  Priority:  normal      |  Milestone:  7.3.0
 Component:  Display     |    Version:  unspecified
Resolution:              |   Keywords:  d.legend.vect, gsoc2016,
       CPU:              |  cartography
  Unspecified            |   Platform:  Unspecified
-------------------------+-------------------------------------------------

Comment (by veroandreo):

 Replying to [comment:8 lazaa]:
 >
 [all the rest deleted]
 >
 > It's possible using {{{input}}}/{{{output}}} parameter. After adding all
 layers (boundary, rivers, bridges) you call d.legend.vect module with
 parameter output
 > {{{d.legend.vect -b at=10,40 output=legend_out}}}.
 >
 > You get file you can edit:
 > {{{
 > boundary|legend/area|5|139:105:20|227:227:186|3|area|8
 > rivers|legend/line|5|232:146:34|200:200:200|2|line|10837
 > bridges|basic/cross2|10|red|white|0|point|160
 > }}}
 >
 > After deleting first line and saving file as e.g. ''legend_in'' you run
 d.legend.vect once again with {{{input}}} parameter
 > {{{d.legend.vect -b at=10,40 input=legend_in}}} and you get legend with
 only two layers altough three layers are displayed in map window.

 Yes, Anna said before that that was the way to do it currently and this is
 probably useful for scripts, but maybe not very straightforward,
 especially for new users or those only using GUI.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3122#comment:9>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list