[Qgis-user] More QGIS Density Analysis Updates and Some Time Comparisons

2022-08-18 Thread C Hamilton via Qgis-user
Anyone dealing with heatmaps or density estimation will be interested in
this plugin.

https://plugins.qgis.org/plugins/densityanalysis/

QGIS natively has the Heatmap (Kernel Density Estimation) algorithm
which is powerful and produces a heatmap image that can then be styled and
displayed. Each pixel in the image represents an area with an accumulated
intensity of the density from the input point layer data.

The Density Analysis plugin adds 3 vector gridded density map algorithms.
1) One of these can be done with a series of steps using QGIS algorithms
such as "Create grid" over the point layer extent, followed by "Count
points in polygon", "Extract by attribute", and then style it. The Density
Analysis plugin does this in one step. If the input point layer is not
spatially indexed then the "Count points in polygon" can be painfully slow.

The next algorithm takes the point layer and generates a geohash string for
each coordinate and creates a dictionary of geohash strings with their
counts. These geohashes are then turned into polygons with a NUMPOINTS
count attribute. The third algorithm makes use of the H3 geohash library
(which you must pip install). H3 geohashing produces hexagon boundaries and
is ideal for density analysis and is blazing fast. Here are some time
comparisons on my computer with these three algorithms. I ran this on a
layer containing 193401 points and there are two different grid cell sizes.

Algorithm 4km grid  1.22 km grid
    -
QGIS count points in polygon  8.16 seconds  63.18 seconds
Geohash   4.89 seconds  5.6 seconds
H3 geohash3.56 seconds  3.79 seconds

When the grid gets more dense the time it takes to count points in
polygons really goes up but the geohashing doesn't change much. We tested
the H3 algorithm against the similar capability in ArcGIS. Here are those
results.

Grid Resolution   ArcGISQGIS H3 geohash
---   --
400m  50 seconds2.93 seconds
50m   3:20 minutes  12.51 seconds

The latest Density analysis plugin includes the following updates:
1. Added a settings dialog that allows the user to choose the default color
ramp used in the algorithms. The setting is persistent from one launch of
QGIS to the next.
2. Added  an invert color ramp check box.
3. Added a styled polygon density algorithm.
4. Added a styled heatmap (kernel density estimation) algorithm. This is a
wrapper on the QGIS Heatmap algorithm, but you specify the grid/pixel cell
size in terms of km, m, mi, etc and not in terms of the CRS of the input
layer. It then automatically styles the layer.
5. Added a H3 grid algorithm.

For a more complete list of capabilities install the plugin and select Help
from "Plugins->Density Analysis".

Best wishes to everyone,

Calvin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Latest development version of QGIS as a .msi standalone installer ?

2022-08-18 Thread Richard Duivenvoorde via Qgis-user

On 8/17/22 10:48, Bo Victor Thomsen via Qgis-user wrote:

So is there a http- or ftp- location where I can download the QGIS development 
version as a msi package ?


Depending on WHAT exactly you want to test (only core stuff), you can download 
a windows 'artifact' from a pull request with all tests succeeded and run that.

BUT BUT !!! this is without any python stuff I'm told So barely usable, 
unless you want to test something from core.

Anyway, this is an example:

https://github.com/qgis/QGIS/pull/49824/checks

and then from the Windows build get the 'QGIS for Windows 64bit' zip (NOTE: 
ONLY when you logged in you can download the artifact, else it is just not a 
link!)

Unzip it (folder QGIS-Portable) and run the qgis binary from the bin folder

(mmm, just checked but you get a lot of warnings from windows not sure if 
it is helpfull for somebody who is fleeing from admins... :-))

Regards,

Richard Duivenvoorde

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user