Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!13Split enpt_enmapboxapp.py into separate modules - one on case EnPT is...
Pipeline #23843 failed
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment