We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent dd85786 commit a56c957Copy full SHA for a56c957
python/plugins/sextante/saga/SplitRGBBands.py
@@ -53,7 +53,12 @@ def defineCharacteristics(self):
53
def processAlgorithm(self, progress):
54
#TODO:check correct num of bands
55
input = self.getParameterValue(SplitRGBBands.INPUT)
56
- temp = SextanteUtils.getTempFilename();
+ temp = SextanteUtils.getTempFilename(None).replace('.','');
57
+ basename = os.path.basename(temp)
58
+ validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
59
+ safeBasename = ''.join(c for c in basename if c in validChars)
60
+ temp = os.path.join(os.path.dirname(temp), safeBasename)
61
+
62
r = self.getOutputValue(SplitRGBBands.R)
63
g = self.getOutputValue(SplitRGBBands.G)
64
b = self.getOutputValue(SplitRGBBands.B)
0 commit comments