Skip to content
Permalink
Browse files
handle new point cloud parameter in description files (follow up
  • Loading branch information
alexbruy authored and nyalldawson committed Aug 22, 2021
1 parent e35bff7 commit cfc72ca5f91dc1578c3eab8a7150451e5bbce1db
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/processing/core/parameters.py
@@ -59,7 +59,8 @@
QgsProcessingParameterMultipleLayers,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterNumber,
QgsProcessingParameterColor)
QgsProcessingParameterColor,
QgsProcessingParameterPointCloudLayer)

from qgis.PyQt.QtCore import QCoreApplication

@@ -107,6 +108,9 @@ def getParameterFromString(s, context=''):
if clazz == QgsProcessingParameterRasterLayer:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
if clazz == QgsProcessingParameterPointCloudLayer:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterBand:
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False

0 comments on commit cfc72ca

Please sign in to comment.