Skip to content
Permalink
Browse files
code cleaning
  • Loading branch information
volaya committed Jan 12, 2013
1 parent d1966b0 commit d5db3732981d06d9d3b4519782396439ec42f686
@@ -31,10 +31,7 @@
from PyQt4.QtGui import *
from sextante.parameters.ParameterString import ParameterString
from sextante.core.QGisLayers import QGisLayers
import os
from PyQt4 import QtGui
from sextante.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from sextante.parameters.ParameterBoolean import ParameterBoolean
import sys


@@ -24,19 +24,16 @@
__revision__ = '$Format:%H$'

from sextante.core.GeoAlgorithm import GeoAlgorithm
from PyQt4 import QtGui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from sextante.parameters.ParameterVector import ParameterVector
from sextante.core.QGisLayers import QGisLayers
from sextante.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from sextante.outputs.OutputVector import OutputVector
from sextante.algs.ftools import ftools_utils
from sextante.core.SextanteLog import SextanteLog
from sextante.parameters.ParameterTableField import ParameterTableField
from sextante.parameters.ParameterSelection import ParameterSelection
from sextante.parameters.ParameterBoolean import ParameterBoolean

class ConvexHull(GeoAlgorithm):

@@ -23,7 +23,6 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from PyQt4 import QtGui
from PyQt4.QtCore import *

from qgis.core import *
@@ -104,7 +104,6 @@ def linearMatrix(self, inLayer, inField, targetLayer, targetField, matType, nPoi
else:
self.writer.writerow(["InputID", "MEAN", "STDDEV", "MIN", "MAX"])

inProvider = inLayer.dataProvider()
targetProvider = targetLayer.dataProvider()
targetProvider.select()

@@ -23,21 +23,15 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

import os.path

from PyQt4 import QtGui
from PyQt4.QtCore import *

from qgis.core import *

from sextante.core.GeoAlgorithm import GeoAlgorithm
from sextante.core.QGisLayers import QGisLayers
from sextante.core.SextanteLog import SextanteLog

from sextante.parameters.ParameterVector import ParameterVector
from sextante.parameters.ParameterNumber import ParameterNumber
from sextante.parameters.ParameterBoolean import ParameterBoolean

from sextante.outputs.OutputVector import OutputVector

class SimplifyGeometries(GeoAlgorithm):
@@ -105,7 +105,7 @@ def getSupportedOutputVectorLayerExtensions(self):
#return ["shp"]

def getSupportedOutputTableExtensions(self):
return ["dbf"]
return ["csv"]

def supportsNonFileBasedOutput(self):
return False
@@ -57,7 +57,7 @@ def getVectorWriter(self, fields, geomType, crs, options=None):
to a QgsVectorFileWriter constructor
@param crs the crs of the layer to create
@return writer instance of the vectoe writer class
@return writer instance of the vector writer class
'''

if self.encoding is None:

0 comments on commit d5db373

Please sign in to comment.