For the following procedure, let's assume your polygon layer is called Po_lyr
and your point layer is called pt_lyr
.
Method 1:
- Load the
Po_lyr
andpt_lyr
into QgisQGIS - CLick on
Vector
->Analysis tools
->Points in Polygon
- Load the
po_lyr
on top and thept_lyr
in the point layer selection menu - Specify where you want the file to be saved
- Add the new layer to the map
- Right click on the map's name and chose
Open Attributes
- The results should be there
Method 2:
- Load the
Po_lyr
andpt_lyr
into QgisQGIS - CLick on
Vector
->Geoprocessing Tools
->Intersect
- In the window that appears, the input layer is
pt_lyr
and the intersect layer ispo_lyr
- Save the output shape file as
result_pt_in_poly.shp
- Load that layer to to QGIS
- Right click on the layer again and click on
Attribute Table
- At this point you can output the table to a spreadsheet and do the math there since for every point, you'll have the ID of the polygon in every point layer.
- If you want to still continue using QGIS, then I assume you'll have to use python console for that but someone here can correct me