Changes between Version 4 and Version 5 of GSoC/2016/BasicCartographySuiteInGRASS


Ignore:
Timestamp:
May 6, 2016, 9:03:15 PM (8 years ago)
Author:
wenzeslaus
Comment:

vector legend prototype suggestion

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2016/BasicCartographySuiteInGRASS

    v4 v5  
    5656
    5757[[TicketQuery(keywords=~cartography|~gsoc2016,order=priority)]]
    58  == Requirements ==
     58== Vector legend ==
    5959
    60  [http://grass.osgeo.org/download/software/#g71x  GRASS 7.1]
     60Draft of legend implementation. Please edit or change completely.
    6161
     62* 1st prototype
     63 * d.legend.vector
     64 * in: list of d.vect commands from layer manager
     65 * Python
     66 * extract: symbol color1 color2 size width text
     67  * symbol
     68   * symbols for lines and areas must be created
     69   * icon if v.info returns lines, then use the new symbol for lines
     70   * icon if v.info returns areas, then use the new symbol for areas
     71   * use icon for points
     72   * use icon when explicitly specified (there is a default but GUI does not put it there unlike history)
     73   * if mixed feature types, either special symbols or separate entries or just use symbol (needs to be decided)
     74  * color1=color
     75  * color2=fill_color
     76  * size=size
     77  * width=width
     78  * text=title or name
     79 * generates d.graph file
     80 * GUI takes d.vect commands, calls this module and uses the output in d.graph when rendering
     81* 2nd stage
     82 * text format for customization
     83 * `symbol color1 color2 size width text...`
     84 * `legend/lines_z` red none 5 2 State border
     85
     86G7:d.graph code:
     87
     88{{{
     89color red
     90polygon
     9110 10
     9210 20
     9320 20
     9420 10
     95color black
     96move 22 10
     97size 24 24
     98text Red area
     99}}}
     100
     101See for example: source:grass-addons/tools/std_dataset_display.py and [https://grasswiki.osgeo.org/w/images/Std_dataset_nc_stripe.png the resulting image].
    62102== Development ==
    63103