Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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'm looking for a tool to generate a stratified random set of points within the boundaries of a polygon layer. In ftools 0.6.1 there is a tool which almost does what I need, but misses the stratified part. For example, I needed to generate 100 random point inside each polygon, accordingly with the polygon's class (from a given field). I know Hawth's Tools had this... Thanks

share|improve this question
up vote 8 down vote accepted

fTools is still there under the Vector menu. The sampling tool you need is Vector|Research Tools|Random Points.

You need to create a new attribute (like 'points') for your polygon layer; for each stratum, you enter the number of points you need to be generated for that stratum. In the dialog you select that new attribute in the 'value from input field' dropdown.

Update: This only seems to be working in QGIS 1.9, not 1.7.4.

Update 2: If you're using 1.7, this is a known bug but there is a workaround:

  • Make sure you have another polygon layer loaded;
  • Open the Random Points tool again, and first select a different layer to the one you want to use as the strata boundaries;
  • Select the strata boundaries layer, and then you can select the proper field name.
share|improve this answer
Nice. It's not immediate but it's what I want. Thanks – vascobnunes Apr 18 '12 at 10:53
What do you mean by 'not immediate'? – Simbamangu Apr 18 '12 at 11:12
I mean its not in front of my eyes... :) BTW I trying it and i'm not getting any field listed in the dropdown – vascobnunes Apr 18 '12 at 11:15
Did you select the radio button next to the "Use value from input field" bit of the dialog? – Simbamangu Apr 18 '12 at 11:17
yes I did. no luck – vascobnunes Apr 18 '12 at 11:17

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.