[GRASS-dev] Re: [GRASS-user] How can I find average/maximum raster values within a vector area?

Moritz Lennert mlennert at club.worldonline.be
Thu Aug 2 04:02:37 EDT 2007


On 02/08/07 06:59, David Finlayson wrote:
> Forgot to CC grass list
> 
> On 8/1/07, David Finlayson <dfinlayson at usgs.gov> wrote:
>> I think you want the command r.statistics. You will need to convert
>> your administrative areas vector map into a raster map where each area
>> has a unique ID. Then run r.statistics on the pollution map using the
>> administrative areas raster as the cover. This tool builds a database
>> table with the min,max avg, etc statistics of pollution for each area
>> id.

How difficult would it be to create a module 'v.statistics' which would 
skip the step of converting the cover to raster ?

Moritz




More information about the grass-dev mailing list