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

Michael Barton michael.barton at asu.edu
Wed Jan 2 13:53:45 EST 2008


On Jan 2, 2008, at 10:00 AM, grass-dev-request at lists.osgeo.org wrote:

> 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

Thanks Moritz. I'll try this when I get to my other computer.

Why are you using backquotes here? This seems non-standard with  
respect to other GRASS commands. Any idea if this works better (or  
worse) on Windows and in a GUI setting?

Michael

______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



More information about the grass-dev mailing list