[GRASS-user] count points within poly and update column

Vaclav Petras wenzeslaus at gmail.com
Fri Apr 17 13:44:06 PDT 2015


On Fri, Apr 17, 2015 at 4:34 PM, Margherita Di Leo <diregola at gmail.com>
wrote:

> Hey Nikos!
>
> On Fri, Apr 17, 2015 at 10:22 PM, Nikos Alexandris <
> nik at nikosalexandris.net> wrote:
>
>> Margherita Di Leo:
>>
>> > Hi,
>> >
>> > I need to count the number of points that falls within a set of
>> polygons,
>> > and add this number as a column in the table associated with the
>> > polygon.How can I do that?
>>
>> Madi,
>>
>> that was a somewhat cumbersome task in the past. Not anymore though,
>> please see: <http://grass.osgeo.org/grass70/manuals/v.vect.stats.html>.
>>
>
> Thank you very much! I have been looking here
> http://grass.osgeo.org/grass71/manuals/vectorintro.html and
> http://grass.osgeo.org/grass71/manuals/topic_statistics.html and in the
> wiki but could find no reference. I'm adding a FAQ in the wiki and keywords
> in the documentation pages.
>
> Very good. Additionally, v.vect.stats is really awesome because it creates
the columns for the data automatically (other modules usually requires you
to create it beforehand).

BTW, the hard way would be to do it through export to xyz/csv, import using
binning and raster-vector statistics.

Thanks again!
> madi
>
>
>
> --
> Best regards,
>
> Dr. Margherita DI LEO
> Scientific / technical project officer
>
> European Commission - DG JRC
> Institute for Environment and Sustainability (IES)
> Via Fermi, 2749
> I-21027 Ispra (VA) - Italy - TP 261
>
> Tel. +39 0332 78 3600
> margherita.di-leo at jrc.ec.europa.eu
>
> Disclaimer: The views expressed are purely those of the writer and may not
> in any circumstance be regarded as stating an official position of the
> European Commission.
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150417/7c943975/attachment.html>


More information about the grass-user mailing list