Re: [GRASS-user] Calculate raster statistics for each polygon

2010-08-06 Thread katrin eggert
Hi Thanks Martin but It's not working. With the following command v.rast.stats -c -e --verbose vector=s...@permanent raster=se...@permanentcolprefix=stat I'm getting this error: Adding columns ' stat_n INTEGER, stat_min DOUBLE PRECISION, stat_max DOUBLE PRECISION, stat_range DOUBLE PRECISION,

Re: [GRASS-user] Calculate raster statistics for each polygon

2010-08-06 Thread Martin Wegmann
Hello, which GRASS version are you using and on which plattform? I did it with GRASS 6.4.0RC6 on Linux using the example GRASS dataset and it worked without problems: v.rast.stats -e vector=geol...@permanent layer=1 raster=elevat...@permanent colprefix=new_ percentile=90 and the new

Re: [GRASS-user] Calculate raster statistics for each polygon

2010-08-06 Thread razmjooeis
It might be something to do with v.db.addcol in windows: http://osgeo-org.1803224.n2.nabble.com/GRASS-GIS-1110-v-rast-stats-locks-up-on-wingrass-td5311955.html cheers Sab Hello, which GRASS version are you using and on which plattform? I did it with GRASS 6.4.0RC6 on Linux using the example

Re: [GRASS-user] Calculate raster statistics for each polygon

2010-08-06 Thread katrin eggert
I'm running GRASS6.4RC6 in Windows with a 2-week old Binary (we are only using Windows here). With that exact command I got: C:/GRASS6/scripts/v.rast.stats: line 268: v.db.addcol: command not found ERROR: Cannot continue (problem adding columns). Is this a common/expected problem in Windows? if

[GRASS-user] Calculate raster statistics for each polygon

2010-08-06 Thread Helmut Kudrnovsky
Hi Katrin, Is this a common/expected problem in Windows? if yes, how can I perform this analysis without using v.rast.stats? Thanks Kat please try the latest nightly-build of wingrass64 (http://josef.fsv.cvut.cz/wingrass/grass64/). this issue should be fixed there. best regards Helmut

[GRASS-user] Calculate raster statistics for each polygon

2010-08-05 Thread katrin eggert
Hello I have polygon layer which divides my image into several areas all contiguous. With the same size, I have a raster image. I want to: - calculate the most frequent value of the raster inside each polygon; - the maximum and minimum value inside each polygon How can this be done in GRASS?

Re: [GRASS-user] Calculate raster statistics for each polygon

2010-08-05 Thread Martin Wegmann
Hello, I think v.rast.stats is what you are looking for http://grass.itc.it/gdp/html_grass64/v.rast.stats.html regards, Martin On Donnerstag, 5. August 2010 18:25:37 katrin eggert wrote: Hello I have polygon layer which divides my image into several areas all contiguous. With the same