Skip to content
Permalink
Browse files
[sextante] adapted SAGA binding to support different versions in wind…
…ows and linux
  • Loading branch information
volaya committed Jul 18, 2013
1 parent bd3bb64 commit 87e33870a96c9aaaca9f20a1a39707da96ff24e2
@@ -304,7 +304,7 @@ def processAlgorithm(self, progress):
if SextanteUtils.isWindows() or SextanteUtils.isMac():
commands.append("io_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 4 -TYPE 0 -FILE \"" + filename + "\"");
else:
commands.append("libio_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 4 -TYPE 0 -FILE \"" + filename + "\"");
commands.append("libio_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 1 -TYPE 0 -FILE \"" + filename + "\"");


#4 Run SAGA
@@ -73,6 +73,12 @@ def createAlgsList(self):
folder = SagaUtils.sagaDescriptionPath()
for descriptionFile in os.listdir(folder):
if descriptionFile.endswith("txt"):
if SextanteUtils.isWindows() or SextanteUtils.isMac():
if descriptionFile.startswith("2.0.8"):
continue
else:
if descriptionFile.startswith("2.1"):
continue
try:
alg = SagaAlgorithm(os.path.join(folder, descriptionFile))
if alg.name.strip() != "":
@@ -0,0 +1,8 @@
Polygon Dissolve
shapes_polygons
ParameterVector|POLYGONS|Polygons|2|False
ParameterTableField|FIELD_1|1. Attribute|POLYGONS|-1|True
ParameterTableField|FIELD_2|2. Attribute|POLYGONS|-1|True
ParameterTableField|FIELD_3|3. Attribute|POLYGONS|-1|True
ParameterSelection|DISSOLVE|Dissolve...|[0] polygons with same attribute value;[1] all polygons;[2] polygons with same attribute value (keep inner boundaries);[3] all polygons (keep inner boundaries)
OutputVector|DISSOLVED|Dissolved Polygons

0 comments on commit 87e3387

Please sign in to comment.