Skip to content
Permalink
Browse files

sextante: fix NameError (undefined var) executing GRASS commands

  • Loading branch information
brushtyler committed Nov 2, 2012
1 parent 00b1958 commit fedb8ac35a8d5a5ae79686a3fa4f95f2b6fa29c2
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/sextante/grass/GrassAlgorithm.py
@@ -279,12 +279,14 @@ def processAlgorithm(self, progress):
# add output file to exported layers, to indicate that they are present in GRASS
self.exportedLayers[filename]= out.name
if isinstance(out, OutputVector):
filename = out.value
command = "v.out.ogr -ce input=" + out.name
command += " dsn=\"" + os.path.dirname(out.value) + "\""
command += " format=ESRI_Shapefile"
command += " olayer=" + os.path.basename(out.value)[:-4]
command += " type=auto"
commands.append(command)
# add output file to exported layers
self.exportedLayers[filename]= out.name

#4 Run GRASS

0 comments on commit fedb8ac

Please sign in to comment.
You can’t perform that action at this time.