[GRASS-dev] d.vect.thematic question

Moritz Lennert mlennert at club.worldonline.be
Sun Aug 28 00:42:29 PDT 2016


On 27/08/16 21:44, Anna Petrášová wrote:
> Hi devs,
>
> I just committed last changes from Adam, so the d.vect.thematic legend
> is now integrated with vector legend. There is couple of options,
> which I am not sure what to do about:
>
> -l  Create legend information and send to stdout
> -e  When printing legend info, include extended statistical info from
> classification algorithm
> -n  Do not draw map, only output the legend
> legendfile File in which to save d.graph instructions for legend display
>
> Should the behavior be the same for backwards compatibility? Then the
> legend info written by -l looks like:
> 0.000000|0.873239|26|128:0:128
> 0.873239|4.000000|45|0:128:0
>
> and -le:
>
> Total number of records: 71
> Classification of PUMPERS into 2 classes
> Using algorithm: *** std ***
> Mean: 0.873239 Standard deviation = 0.854641
> Stdev multiplied by 1.0000 to define step
>
> 0.000000|0.873239|26|128:0:128
> 0.873239|4.000000|45|0:128:0
>
> and legendfile saves d.graph instructions:
> size 8 8
> symbol basic/box 25 5 10 black 128:0:128
> move 8 9
> text 0.000000 - 0.873239 | 26
> symbol basic/box 25 5 16 black 0:128:0
> move 8 15
> text 0.873239 - 4.000000 | 45
>
>
> OR should the legend information be in the new format:
> |||||firestations
> 0.00 - 0.87|basic/x|5|0:0:0|128:0:128|1|point|26
> 0.87 - 4.00|basic/x|5|0:0:0|0:128:0|1|point|45
>
> and legendfile would save the new format and not d.graph instructions?

I think that now that we have d.legend.vect, it would be better to do 
the latter, i.e. don't have d.vect.thematic worry about the d.graph 
instructions.

Couldn't we just have d.vect.thematic automatically write to the new 
format in the legend file, but keep the flags for now for backward 
compatibility, while possible emitting a 'deprecated' warning when they 
are used ?

Moritz


More information about the grass-dev mailing list