[GRASS-user] v.rast.stats over a large vector file

Achim Kisseler ak7 at jupiter.uni-freiburg.de
Fri Nov 26 07:17:04 EST 2010


Hi Sab,

v.stats _IS_ very slow (for many primitives).
Maybe you could analyse the database, where you can calculate the 
statistics you like. For spatial statistics you can analyse uploaded 
coordinates of centroids or sizes of area.

Hope it helps a bit,
Achim

Am 26.11.2010 12:32, schrieb razmjooeis at faunalia.co.uk:
> Dear list
>
> I am trying to run v.rast.stats for a large vector file. It contains
> around 700000 buildings representing buildings.
>
> here is my g.region info
> g.region -p
> projection: 99 (Transverse Mercator)
> zone:       0
> datum:      osgb36
> ellipsoid:  airy
> north:      183010.45829976
> south:      153516.19024768
> west:       513122.49174945
> east:       555953.95182415
> nsres:      4.99987592
> ewres:      5.00017045
> rows:       5899
> cols:       8566
> cells:      50530834
>
> THe problem I am having is the process is extremely slow. It has done 150
> features out of 700000 areas after 2 hours.
> I need just the average raster value within each building (feature).
> My questions are:
> - Is there something I can do to speed up the process?
> - Is there a way just to get the average value rather than the whole set
> of statistical parameters (I am not even using -e option)
>
>
> Any advice on that is highly appreciated.
>
> Regards
> Sab
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list