Unverified Commit 25ba21bc authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Replaced QgsProcessingParameter with QgsProcessingParameterRasterLayer where...

Replaced QgsProcessingParameter with QgsProcessingParameterRasterLayer where it makes sense (adds a dropdown menu).
parent e680d17e
Pipeline #23843 failed with stage
in 1 minute and 6 seconds
......@@ -40,7 +40,8 @@ from qgis.core import \
QgsProcessingParameterFolderDestination,
QgsProcessingParameterBoolean,
QgsProcessingParameterString,
QgsProcessingParameterDefinition
QgsProcessingParameterDefinition,
QgsProcessingParameterRasterLayer
)
from .version import __version__
......@@ -148,15 +149,15 @@ class _EnPTBaseAlgorithm(QgsProcessingAlgorithm):
self.addParameter(QgsProcessingParameterFile(
name=self.P_path_l1b_enmap_image,
description='L1B EnMAP image (zip-archive or root directory)'))
description='EnMAP Level-1B image (zip-archive or root directory)'))
self.addParameter(QgsProcessingParameterFile(
name=self.P_path_l1b_enmap_image_gapfill,
description='Adjacent EnMAP L1B image to be used for gap-filling (zip-archive or root directory)',
description='Adjacent EnMAP Level-1B image to be used for gap-filling (zip-archive or root directory)',
optional=True),
advanced=True)
self.addParameter(QgsProcessingParameterFile(
self.addParameter(QgsProcessingParameterRasterLayer(
name=self.P_path_dem,
description='Input path of digital elevation model in map or sensor geometry; GDAL compatible file '
'format \n(must cover the EnMAP L1B data completely if given in map geometry or must have the '
......@@ -234,7 +235,7 @@ class _EnPTBaseAlgorithm(QgsProcessingAlgorithm):
defaultValue=False,
optional=True))
self.addParameter(QgsProcessingParameterFile(
self.addParameter(QgsProcessingParameterRasterLayer(
name=self.P_path_reference_image,
description='Reference image for co-registration.',
defaultValue=None,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment