File tree 1 file changed +10
-1
lines changed
python/plugins/processing/algs/gdal
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 16
16
* *
17
17
***************************************************************************
18
18
"""
19
+ from processing .tools import dataobjects
19
20
20
21
21
22
__author__ = 'Victor Olaya'
@@ -47,7 +48,15 @@ def getCustomParametersDialog(self):
47
48
return GdalAlgorithmDialog (self )
48
49
49
50
def processAlgorithm (self , progress ):
50
- GdalUtils .runGdal (self .getConsoleCommands (), progress )
51
+ commands = self .getConsoleCommands ()
52
+ layers = dataobjects .getVectorLayers ()
53
+ for i , c in enumerate (commands ):
54
+ for layer in layers :
55
+ if layer .source () in c :
56
+ c = c .replace (layer .source (), dataobjects .exportVectorLayer (layer ))
57
+
58
+ commands [i ] = c
59
+ GdalUtils .runGdal (commands , progress )
51
60
52
61
def shortHelp (self ):
53
62
return self ._formatHelp ('''This algorithm is based on the GDAL %s module.
You can’t perform that action at this time.
0 commit comments