2

I've been playing around with the Random Points tool in QGIS to realize stratified random sampling, but I'm running into a problem where I want my strata to be based on a polygon ID, not each individual polygon. In other words: I may have multiple non-contiguous polygons that all represent a single strata, where I want a TOTAL of (e.g.) 10 points randomly distributed among the disconnected polygons, not 10 per polygon. Is there any way to do this? Would a multi-part polygon work, for this?

1
  • Did you tried points in polygon option>?
    – Arun
    Sep 6 '13 at 7:28
2

Using a multi-part polygon does work. Below, a multi-part (blue) and single polygon: Multi-part polygon (blue) and single (white)

Using the random points tool and 20 points per polygon, 20 points are distributed amongst all three blue parts of the first polygon: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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