Skip to content
Permalink
Browse files

Merge pull request #915 from gioman/master

Makes SAGA supervised classification work also with SAGA 2.0.8, fixes #8715. Add schema selection to GUI of "Import into PostGIS" tool (fixes #8513). Fixes export of GRASS vectors (fix #8515)
  • Loading branch information
volaya committed Sep 30, 2013
2 parents 814ae4c + 7004a05 commit c70a0d23ab4a6fce0d66b92903c4446a76c9ee91
@@ -96,6 +96,7 @@ def defineCharacteristics(self):
self.group = "PostGIS management tools"
self.addParameter(ParameterVector(self.INPUT, "Layer to import"))
self.addParameter(ParameterString(self.DATABASE, "Database (connection name)"))
self.addParameter(ParameterString(self.SCHEMA, "Schema (schema name)"))
self.addParameter(ParameterString(self.TABLENAME, "Table to import to"))
self.addParameter(ParameterBoolean(self.OVERWRITE, "Overwrite", True))
self.addParameter(ParameterBoolean(self.CREATEINDEX, "Create spatial index", True))
@@ -336,7 +336,7 @@ def processAlgorithm(self, progress):

if isinstance(out, OutputVector):
filename = out.value
command = "v.out.ogr -e input=" + out.name + uniqueSufix
command = "v.out.ogr -c -e input=" + out.name + uniqueSufix
command += " dsn=\"" + os.path.dirname(out.value) + "\""
command += " format=ESRI_Shapefile"
command += " olayer=" + os.path.basename(out.value)[:-4]
@@ -24,9 +24,13 @@
__revision__ = '$Format:%H$'

from processing.tests.TestData import table
from processing.core.ProcessingConfig import ProcessingConfig
from processing.saga.SagaUtils import SagaUtils

def editCommands(commands):
commands[-3] = commands[-3] + " -STATS " + table()
return commands


saga208 = ProcessingConfig.getSetting(SagaUtils.SAGA_208)
if not saga208:
commands[-3] = commands[-3] + " -STATS " + table()
return commands
else:
return commands

0 comments on commit c70a0d2

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