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

Daniel McInerney daniel.mcinerney at ucd.ie
Thu Aug 2 04:52:22 EDT 2007

you could also use v.rast.stats to compute
pollution statistics for the administrative
areas. See [1] for more details.


[1] http://grass.itc.it/gdp/html_grass63/v.rast.stats.html

Moritz Lennert wrote:
> 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
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser

More information about the grass-user mailing list