[GRASS-user] Spatial join of points to polygon

Markus Metz markus.metz.giswork at googlemail.com
Fri Aug 27 12:01:17 EDT 2010


Patrick_schirmer wrote:
> Dear all,
>
> Unfortunately I am not really used to work with GRASS so this might be a
> rookie-question. But I am not able to solve it alone, don't find any hint on
> the net and thus will need your help:
> I got a map of polygones and a map of points. My aim is to sum up the
> attributes of a defined column in the point-map to the polygone where they
> are lying in. So what I am looking for is a function saying 'spatial join'
> of polygons and points with the options 'contains' by using the function
> 'sum'. The only thing I can find will be v.what.vect. which will allow to
> give the point the value of the polygone, but not the other way round.
>
> Is there a simple solution to that question within GRASS6.4? (I think QGIS
> is having this option, but I would like to solve it within GRASS6.4).
>
Try v.vect.stats from grass-addons, this would do the job in one step,
optionally updating polygon attributes with statistics calculated on
point attributes per polygon.

svn checkout https://svn.osgeo.org/grass/grass-addons/vector/v.vect.stats

Markus M


More information about the grass-user mailing list