[QGIS-Developer] Processing Algorithm Gradient Selection?

C Hamilton adenaculture at gmail.com
Thu Feb 17 08:21:43 PST 2022


I am thinking of adding an algorithm that automates the creation of a
density heat map of a point vector layer by the following steps.
1. Call the "Create grid" algorithm.
2. Call the "Count points in polygon" algorithm.
3. Style it with "Graduated" style and choose a gradient from a selection
of heatmaps. This would need to be able to automatically scale to the min
and max values and allow the user to select the mode.

All except for the last can be easily modeled in QGIS; however, there is no
color ramp QgsProcessingParameter for a heatmap.Is there a way to use
QgsProcessingParameterEnum to display a gradient image. Is there a QGIS API
call that would retrieve a set of gradients that could be added to the
QgsProcessingParameterEnum?

Any ideas would be appreciated. This can be manually done in 3 steps by
separately running each of the algorithms and then styling the resulting
vector layer, but it would be nice if it could be done with one algorithm.

Thanks!!!

Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220217/301d0491/attachment.html>


More information about the QGIS-Developer mailing list