Skip to content

Commit

Permalink
[processing] do not write CRS file if output is not a layer
Browse files Browse the repository at this point in the history
fixes #13590
  • Loading branch information
volaya committed Oct 14, 2015
1 parent e92e910 commit 5ca5566
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/saga/SagaAlgorithm212.py
Expand Up @@ -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:'):]
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/saga/SagaAlgorithm213.py
Expand Up @@ -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.