6 changes: 3 additions & 3 deletions python/plugins/sextante/grass/GrassAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,10 @@ def postProcessResults(self):
func(self)

def exportVectorLayer(self, orgFilename):
#only export to an intermediate shp if the layer is not file-based.
#We assume that almost all file formats will be supported by ogr
#TODO: improve this. We are now exporting if it is not a shapefile,
#but the functionality of v.in.ogr could be used for this.
#We also export if there is a selection
if not os.path.exists(orgFilename):
if not os.path.exists(orgFilename) or not orgFilename.endswith("shp"):
layer = QGisLayers.getObjectFromUri(orgFilename, False)
if layer:
filename = LayerExporter.exportVectorLayer(layer)
Expand Down
15 changes: 0 additions & 15 deletions python/plugins/sextante/grass/GrassAlgorithmProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,4 @@ def getSupportedOutputVectorLayerExtensions(self):
def getSupportedOutputRasterLayerExtensions(self):
return ["tif"]

def createDescriptionFiles(self):
folder = "C:\\descs\\grass"
i = 0
for alg in self.preloadedAlgs:
f = open (os.path.join(folder, alg.name +".txt"), "w")
f.write(alg.name + "\n")
f.write(alg.name + "\n")
f.write(alg.group + "\n")
for param in alg.parameters:
f.write(param.serialize() + "\n")
for out in alg.outputs:
f.write(out.serialize() + "\n")
f.close()
i+=1


4 changes: 2 additions & 2 deletions python/plugins/sextante/grass/GrassUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ def checkGrassIsInstalled(ignoreRegistrySettings=False):
+ "folder is correctly configured")

settings = QSettings()
if not ignoreRegistrySettings:
GRASS_INSTALLED = "/SextanteQGIS/GrassInstalled"
GRASS_INSTALLED = "/SextanteQGIS/GrassInstalled"
if not ignoreRegistrySettings:
if settings.contains(GRASS_INSTALLED):
return

Expand Down
19 changes: 0 additions & 19 deletions python/plugins/sextante/saga/SagaAlgorithmProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,25 +114,6 @@ def getSupportedOutputRasterLayerExtensions(self):
def getSupportedOutputTableLayerExtensions(self):
return ["dbf"]


def getIcon(self):
return QIcon(os.path.dirname(__file__) + "/../images/saga.png")

def createDescriptionFiles(self):
folder = "C:\\descs\\saga"
i = 0
for alg in self.preloadedAlgs:
f = open (os.path.join(folder, alg.name.replace(" ","").replace("/", "") + ".txt"), "w")
f.write(alg.name + "\n")
f.write(alg.undecoratedGroup + "\n")
for param in alg.parameters:
f.write(param.serialize() + "\n")
for out in alg.outputs:
f.write(out.serialize() + "\n")
f.close()
i+=1





4 changes: 2 additions & 2 deletions python/plugins/sextante/saga/SagaUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def checkSagaIsInstalled(ignoreRegistrySettings=False):
+ "folder is correctly configured")

settings = QSettings()
if not ignoreRegistrySettings:
SAGA_INSTALLED = "/SextanteQGIS/SagaInstalled"
SAGA_INSTALLED = "/SextanteQGIS/SagaInstalled"
if not ignoreRegistrySettings:
if settings.contains(SAGA_INSTALLED):
return

Expand Down