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.
-
1I 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– Snaileater2019年08月14日 09:36:22 +00:00Commented Aug 14, 2019 at 9:36
1 Answer 1
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 polygon
plug-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– user1477992019年08月14日 16:08:28 +00:00Commented 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?2019年08月14日 18:01:38 +00:00Commented Aug 14, 2019 at 18:01
-
If this answers the question he should entirely rephrase it ...Snaileater– Snaileater2019年08月15日 05:32:07 +00:00Commented Aug 15, 2019 at 5:32
-
@snaileater I agree, this was just a/my interpretation of the problemMarcM– MarcM2019年08月15日 06:50:23 +00:00Commented Aug 15, 2019 at 6:50