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.

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Aug 14, 2019 at 0:08
1
  • 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 ... Commented Aug 14, 2019 at 9:36

1 Answer 1

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.

answered Aug 14, 2019 at 8:28
4
  • Your suggestion does what I want without scripting. Thank you. Commented Aug 14, 2019 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? Commented Aug 14, 2019 at 18:01
  • If this answers the question he should entirely rephrase it ... Commented Aug 15, 2019 at 5:32
  • @snaileater I agree, this was just a/my interpretation of the problem Commented Aug 15, 2019 at 6:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.