[QGIS-Developer] How to set defaults to QgsProcessingParameterMultipleLayers
C Hamilton
adenaculture at gmail.com
Fri Jan 27 11:34:27 PST 2023
I just received a request to update the Density Analysis plugin
density hash algorithms so they work with multiple layers and produce one
density map based off of multiple input layers. In the algorithm I have
replaced QgsProcessingParameterFeatureSource
with QgsProcessingParameterMultipleLayers.
Is there a way to automatically populate as default value of selected
layers in QgsProcessingParameterMultipleLayers with the selected layers or
selected groups of layers in the "Layer Panel"? This would be incredibly
useful.
I am doing this as a QgsProcessingAlgorithm. The layerType to
QgsProcessingParameterMultipleLayers is QgsProcessing.TypeVectorPoint.
Thanks for your help.
Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230127/bdacd6bf/attachment.htm>
More information about the QGIS-Developer
mailing list