0

In QGIS 3.6, I wanted to create different layers of random points reading different fields of an attribute table. For example:

City  #cinemas    #malls     #stores
A       15         10          12
B       20         21          10
C       16         20          16

If I have the layer for the map of the cities, how would I plot the distribution of cinemas, malls and stores as random points in each city. reading the values from this attribute table? Without inputting values myself though.

  • 1
    I suppose u want to scatter 15 cinemas, 10 malls and 12 stores in city A ? Is that your aim ? You should not call (imho) your table "attribute table" since it's not an attribute table as usually understood in GIS terminology ... you want to create 3 layers with cinemas, malls and stores entities ... ? please clarify ... – snaileater Aug 14 at 9:36
2

If you only want to use tools which are present in QGIS (so no scripting) you can have a look at the Random points inside a polygonplug-in. Which can be found in Vector --> Research Tools. You need the boundaries for each city as a polygon layer.

  • Your suggestion does what I want without scripting. Thank you. – user147799 Aug 14 at 16:08
  • @user147799 If this answers your question the best way to say "Thank you" is to upvote and mark as the answer. See What should I do when someone answers my question? – Midavalo Aug 14 at 18:01
  • If this answers the question he should entirely rephrase it ... – snaileater Aug 15 at 5:32
  • @snaileater I agree, this was just a/my interpretation of the problem – MarcM Aug 15 at 6:50

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.