Skip to content
Permalink
Browse files
[processing] do not write CRS file if output is not a layer
fixes #13590
  • Loading branch information
volaya committed Oct 14, 2015
1 parent e92e910 commit 5ca556670a194c9318c42eaaa0390180f84fa859
@@ -248,8 +248,8 @@ def processAlgorithm(self, progress):
for out in self.outputs:
if isinstance(out, (OutputVector, OutputRaster)):
prjFile = os.path.splitext(out.getCompatibleFileName(self))[0] + ".prj"
with open(prjFile, "w") as f:
f.write(self.crs.toWkt())
with open(prjFile, "w") as f:
f.write(self.crs.toWkt())

def preProcessInputs(self):
name = self.commandLineName().replace('.', '_')[len('saga:'):]
@@ -197,5 +197,5 @@ def processAlgorithm(self, progress):
for out in self.outputs:
if isinstance(out, (OutputVector, OutputRaster)):
prjFile = os.path.splitext(out.getCompatibleFileName(self))[0] + ".prj"
with open(prjFile, "w") as f:
f.write(self.crs.toWkt())
with open(prjFile, "w") as f:
f.write(self.crs.toWkt())

0 comments on commit 5ca5566

Please sign in to comment.