Changes between Version 22 and Version 23 of GSoC/2016/BasicCartographySuiteInGRASS


Ignore:
Timestamp:
06/26/16 18:57:03 (8 years ago)
Author:
annakrat
Comment:

d.legend.vect

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2016/BasicCartographySuiteInGRASS

    v22 v23  
    5959Draft of legend implementation. Please edit or change completely.
    6060
    61 * 1st prototype
    62  * d.legend.vector
    63  * in: list of d.vect commands from layer manager
    64  * Python
    65  * extract: symbol color1 color2 size width text
    66   * symbol
     61 * d.legend.vect in C
     62 * input csv file: vector symbol color fill_color size width label
    6763   * symbols for lines and areas must be created
    68    * icon if v.info returns lines, then use the new symbol for lines
    69    * icon if v.info returns areas, then use the new symbol for areas
    70    * use icon for points
    71    * use icon when explicitly specified (there is a default but GUI does not put it there unlike history)
    7264   * if mixed feature types, either special symbols or separate entries or just use symbol (needs to be decided)
    73   * color1=color
    74   * color2=fill_color
    75   * size=size
    76   * width=width
    77   * text=title or name
    78  * generates d.graph file
    79  * GUI takes d.vect commands, calls this module and uses the output in d.graph when rendering
    80 * 2nd stage
    81  * text format for customization
    82  * `symbol color1 color2 size width text...`
    83  * `legend/lines_z` red none 5 2 State border
     65 * d.vect - add new parameters for specifying legend, d.vect would have a flag to write a file with this specification
     66   * for example new parameter `legend_label`
     67 * GUI takes files generated by d.vect commands, and puts them together and calls d.legend.vect to render the legend
     68 * the same could be done for d.vect thematic
     69 * users can also customize the input text file - a special widget needs to be developed to simplify it.
     70 * d.legend.vect should have `vector` parameter - only those will be rendered
    8471
    8572G7:d.graph code: