Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a number of single-value raster layers defining a area mask and a point layer pulled from PostGIS. Is there a way to have Quantum GIS show me the number of points that overlay the raster polygon? Or is my only option to convert the raster to a vector, pull into the database, and run a query against it?

share|improve this question
Are the rasters irregularly shaped? If they are simple boxes/rectangles you could just pull the coordinates of a couple corners and perform a query against the point coordinates to determine if they fall inside. – Radar Apr 25 '13 at 21:52
They're very irregularly shaped. Something similar to, with the red raster polygon being a superset of the green raster polygon. – Oesor Apr 25 '13 at 21:54
up vote 2 down vote accepted

There's a plug-in called Point Samping Tool

You can use it to harvest the raster values for each point, and then short them as you wish

share|improve this answer
That looks like what I need. Thanks. – Oesor Apr 25 '13 at 22:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.