Dot density map plugin for Qgis
Easy plugin to make a density layer from a polygon layer with an integer field.
1.0
José Manuel Mira Martínez
- Select a polygon layer from combo 1
- Select a numeric field from combo 2. Then the min and max value data are filled.
- Make a "simulation" to know the numbers of point in polygon with min and max value
- Clic on "OK" button to run the algoritm
This plugin is based in Chapter 8: "Creating a dot density map" from book "QGIS Python Programming Cookbook", author: Joel Lawhead
For each polygon, the plugin gets its box (minx, maxx, miny, maxy). Then, divide the value of the attribute of the field selected by the user's divisor to know the number of points per polygon. For each point, the algorithm generates a random point included in the table. Next, it verify if the point is inside the polygon, and then this is designed as a candidate. If the geometry is a multipolygon with many islands the algorithm slows down because the spatial box is very large, and the chances of the point falling is an island is very small.
There are two folder, each one for Qgis 2.X or Qgis 3.X
Tested in Linux box with Qgis 2.14, 2.18 and 3.03