Skip to content

Commit

Permalink
resolved #584
Browse files Browse the repository at this point in the history
  • Loading branch information
janzandr committed Aug 31, 2023
1 parent 625e655 commit bb9ab32
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion enmapboxprocessing/enmapalgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
QgsProcessingParameterFileDestination, QgsProcessingParameterFile, QgsProcessingParameterRange,
QgsProcessingParameterCrs, QgsProcessingParameterVectorDestination, QgsProcessing,
QgsProcessingUtils, QgsProcessingParameterMultipleLayers, QgsProcessingException,
QgsProcessingParameterFolderDestination, QgsProject)
QgsProcessingParameterFolderDestination, QgsProject, QgsProcessingOutputLayerDefinition,
QgsProperty)
from enmapbox.typeguard import typechecked


Expand Down Expand Up @@ -424,6 +425,12 @@ def parameterAsOutputLayer(

if filename == '':
filename = parameters.get(name, '')

if isinstance(filename, QgsProcessingOutputLayerDefinition):
sink: QgsProperty = filename.sink
filename = sink.toVariant()['val']
assert isinstance(filename, str)

if filename == '':
return None
if not isabs(filename):
Expand Down

0 comments on commit bb9ab32

Please sign in to comment.