[GRASSLIST:2684] Re: extracting vector attributes

Radim Blazek blazek at itc.it
Thu Feb 19 04:14:41 EST 2004


On Wednesday 18 February 2004 16:53, Christopher Fonnesbeck wrote:
> I am trying to determine the area of each polygon in a layer, and store
> this statistic as a column in the attribute table (my vector attributes
> are stored in MySQL). There appears to be no vector function in the
> reference manual that provide this function, but I'm sure there must be
> something that does this. Please point me in the right direction.

v.to.db option=area

More precisely/generally, it does not update each row in the table by area size 
of each polygon, but by the sum of area sizes of all polygons with the same category.


Radim




More information about the grass-user mailing list