[Qgis-user] Count points overlaying a raster layer

Randal Hale rjhale at northrivergeographic.com
Mon Nov 28 19:38:38 PST 2016


I would convert your raster to vector.

Assuming you are on 2.18 (which is what I am currently using) - open 
your processing toolbox. At the top of QGIS click on Processing -> Toolbox.

1. In your toolbox go to GDAL/OGR -> Conversion -> Polygonize raster to 
Vector. Once you change that to a vector file then go to the next step.

2. In your toolbox go to QGIS geoalgorithms -> Vector Analysis Tools -> 
Count points in polygons. That should add a field to your new polygon 
shapefile with the number of points in that polygon.

Good Luck.


On 11/28/2016 09:37 PM, K Imran M wrote:
> Dear all,
>
> I apologize if this has been asnwered before. My question is:
>
> if I have 2 layers- one is a vector (points in shapefile format) layer 
> and the other one is a raster layer (flood area). And I would like to 
> count the number of points inside the flood area. How can I do that? 
> Should I convert the raster to vector first? Can anyone kindly refer 
> me to any resource if you know any?
>
> Best regards.
>
> Kamarul
>
> ---------------------------------------------------------------------
>
> Kamarul Imran Musa (MD MCommunityMed)
> Associate Professor (Epidemiology and Biostatistics) &
> Public Health Physician,
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
------------------------------------------------
Randal Hale
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjhale at northrivergeographic.com
twitter:rjhale     http://about.me/rjhale
http://www.northrivergeographic.com/introduction-to-quantum-gis
https://www.facebook.com/NRGSInc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20161128/a1464180/attachment.html>


More information about the Qgis-user mailing list