[GRASS-user] [GRASSLIST:9108] Re: Area size of a vector layer..

Moritz Lennert mlennert at club.worldonline.be
Tue Mar 25 08:58:40 EDT 2008


Going through a huge backlog of GRASS mails, so sorry if this was 
already answered:

On 10/03/08 15:43, Nikos Alexandris wrote:
> On Mon, 2008-03-10 at 07:19 -0700, Nikos Alexandris wrote:
> [...]
>> I am replying in an old thread but I've been trying to grab area size per
>> class from a (CORINE land cover) vector map. Still no luck for a quick and
>> easy way.
> 
> I forgot:
> 
> My column with the various land cover classes is "a_code".
> 
> So thw question is actually how could I sum up area's based on "a_code"?

Have you tried (using sqlite or postresql as data backend):

v.to.db area

echo "select a_code, sum(area) from CorineTable group by a_code" | 
db.execute

Moritz


More information about the grass-user mailing list