File tree 1 file changed +13
-1
lines changed
python/plugins/processing/algs/gdal
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,18 @@ def __init__(self):
57
57
super ().__init__ ()
58
58
59
59
def initAlgorithm (self , config = None ):
60
+
61
+ class ParameterVrtDestination (QgsProcessingParameterRasterDestination ):
62
+
63
+ def __init__ (self , name , description ):
64
+ super ().__init__ (name , description )
65
+
66
+ def type (self ):
67
+ return 'vrt_destination'
68
+
69
+ def defaultFileExtension (self ):
70
+ return 'vrt'
71
+
60
72
self .addParameter (QgsProcessingParameterMultipleLayers (self .INPUT ,
61
73
self .tr ('Input layers' ), QgsProcessing .TypeRaster ))
62
74
self .addParameter (QgsProcessingParameterEnum (self .RESOLUTION ,
@@ -65,7 +77,7 @@ def initAlgorithm(self, config=None):
65
77
self .tr ('Layer stack' ), defaultValue = True ))
66
78
self .addParameter (QgsProcessingParameterBoolean (self .PROJ_DIFFERENCE ,
67
79
self .tr ('Allow projection difference' ), defaultValue = False ))
68
- self .addParameter (QgsProcessingParameterRasterDestination (self .OUTPUT , self .tr ('Virtual' )))
80
+ self .addParameter (ParameterVrtDestination (self .OUTPUT , self .tr ('Virtual' )))
69
81
70
82
def name (self ):
71
83
return 'buildvirtualraster'
You can’t perform that action at this time.
0 commit comments