[GRASS-dev] d.vect.thematic question

Anna Petrášová kratochanna at gmail.com
Sat Aug 27 12:44:39 PDT 2016


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?

Thanks,

Anna


More information about the grass-dev mailing list