[GRASS-user] How to calculate the area of a rastermap

Martin Wegmann wegmann at biozentrum.uni-wuerzburg.de
Mon Jan 14 07:19:56 EST 2008


hello Philipp,

On Montag, 14. Januar 2008 08:47:15 Philipp Steigenberger wrote:
> Hi list,
> I know there is a posibility to calculate the area of a rastermap, but I
> cannot find the command.

Do you want to calculate the area of patches inside a rastermap or the extent 
of a raster?

for the first you have to use v.* commands 

r.to.vect input= output=out feature=area
v.db.addcol map=out layer=1 'columns=area double' 
v.to.db map=out type=point,line,boundary,centroid layer=1 qlayer=1 option=area 
units=meters column=area 
v.to.rast out output=out_area use=attr col=area --o

for the second r.info or g.region would do it.

Martin


>
> I have a water.outlet map. The area data range is 1 to 1
>
> Thankyou
>
> best wishes
> Philipp




More information about the grass-user mailing list