Friday, 8 June 2018

Creating Dot Density Maps in QGIS?


Is there a 'friendly' way to create dot-density maps, where a polygon attribute data defines the number of dots (e.g. 1 dot = 100 ) using QGIS 1.7+? I say friendly because after a couple of hours researching all the alternatives seem to require programming. Maybe I am not looking in the right place. I am already aware of the fTools 'Random Points' feature and it is not what I am looking for.


enter image description here





That is precisely what I am seeking. However every time I attempted to run this function. I received the following:


An error has occured while executing Python code:

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line 118, in accept
self.randomize(inLayer, outPath, minimum, design, value)
File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line 210, in randomize
else: points = self.loopThruPolygons(inLayer, value, design)
File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line 256, in loopThruPolygons

sExt = sGeom.boundingBox()
AttributeError: 'NoneType' object has no attribute 'boundingBox'

Python version:
2.7.1+ (r271:86832, Apr 11 2011, 18:37:12)
[GCC 4.5.2]


QGIS version:
1.8.0-Trunk Trunk, exported


Answer



If this result created using "Random points" is not what you are looking for, you'll have to be more specific about your requirements.


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...