Skip to content
Permalink
Browse files
fixed minor bugs in ftools and in ParametersPanel
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@131 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Apr 19, 2012
1 parent 3df5283 commit e9f069906db1b4d46281329b4987ca56fadbb74e
Showing with 5 additions and 3 deletions.
  1. +1 −1 src/sextante/ftools/BasicStatistics.py
  2. +1 −1 src/sextante/ftools/PointsInPolygon.py
  3. +3 −1 src/sextante/gui/ParametersPanel.py
@@ -21,7 +21,7 @@ class BasicStatistics(GeoAlgorithm):
USE_SELECTION = "USE_SELECTION"

def getIcon(self):
return QtGui.QIcon(os.path.dirname(__file__) + "/icons/basic_Statistics.png")
return QtGui.QIcon(os.path.dirname(__file__) + "/icons/basic_statistics.png")


def createHTML(self, outputFile, lstStats):
@@ -74,7 +74,7 @@ def processAlgorithm(self, progress):
for i in pointList:
pointProvider.featureAtId( int( i ), inFeatB , True, allAttrs )
tmpGeom = QgsGeometry( inFeatB.geometry() )
if inGeom.contains(tmpGeom.asPoint()):
if inGeom.contains(tmpGeom):
count = count + 1
outFeat.setAttributeMap(atMap)
outFeat.addAttribute(index, QVariant(count))
@@ -25,14 +25,16 @@

class ParametersPanel(QtGui.QWidget):

NOT_SELECTED = "[Not selected]"

def __init__(self, alg, paramDialog):
super(ParametersPanel, self).__init__(None)
self.alg = alg;
self.paramDialog = paramDialog
self.valueItems = {}
self.dependentItems = {}
self.iterateButtons = {}
self.NOT_SELECTED = ""

self.initGUI()

def initGUI(self):

0 comments on commit e9f0699

Please sign in to comment.