[GRASS-dev] Re: test of v.area.thematic

Moritz Lennert mlennert at club.worldonline.be
Wed Jan 2 06:06:57 EST 2008


Michael,

On 29/12/07 20:20, Michael Barton wrote:
> Moritz,
> 
> Couldn't help myself and tried out the new v.area.thematic.
> 
> I very much like it, but there is something not working about the color 
> assignments. I tried the following, using the new NC GRASS demo data set.
> 
> GRASS 6.3.svn (nc_spm_07):~ > d.area.thematic map=censusblk_swwake 
> data=total_pop breaks='v.class map=censusblk_swwake column=total_pop 
> algo=std nbcla=4' colors=0:0:255,0:0:100,100:0:0,255:0:0 layer=1 
> bwidth=0 bcolor=yellow render=l


Two things are not correct in this command line:

- You need to use back ticks (`) and not single quotes (') aroung the 
v.class command line.
- The example in the description.html was wrong: it should be v.class -g 
so that you do not get the full v.class output, but only the shell style.

This should work:

d.area.thematic map=censusblk_swwake data=total_pop breaks=`v.class -g 
map=censusblk_swwake column=total_pop algo=std nbcla=4` 
colors=0:0:255,0:0:100,100:0:0,255:0:0 layer=1 bwidth=0 bcolor=yellow 
render=l

Moritz


More information about the grass-dev mailing list