Skip to content
Permalink
Browse files
[sextante] fixed some minor bugs due to new SIP API
  • Loading branch information
volaya committed Jul 1, 2013
1 parent cfebe8f commit df398a18a2e7ba80f4890060c639d91289b6a4ba
@@ -92,7 +92,7 @@ def processAlgorithm(self, progress):
progress.setPercentage(int(nElement/nFeat * 100))
atMap = inFeat.attributes()
tempItem = atMap[ field ]
if tempItem.strip() == item.strip():
if unicode(tempItem).strip() == unicode(item).strip():
if first:
QgsGeometry( inFeat.geometry() )
tmpInGeom = QgsGeometry( inFeat.geometry() )
@@ -84,7 +84,7 @@ def processAlgorithm(self, progress):
for inFeat in features:
atMap = inFeat.attributes()
idVar = atMap[index]
if idVar.strip() == i.strip():
if unicode(idVar).strip() == unicode(i).strip():
if first:
attrs = atMap
print attrs
@@ -75,4 +75,4 @@ def getValue(self):
return s

def setText(self, text):
self.text.setText(text)
self.text.setText(text)
@@ -735,7 +735,7 @@ def setParamNumberValue(self, param, widget):
except:
return False
else:
value = widget.itemData(widget.currentIndex()).toPyObject()
value = widget.itemData(widget.currentIndex())
self.params[param.name] = value
return True

@@ -756,7 +756,7 @@ def setParamExtentValue(self, param, widget):
return False
self.values[name] = s
else:
value = widget.itemData(widget.currentIndex()).toPyObject()
value = widget.itemData(widget.currentIndex())
self.params[param.name] = value
return True

0 comments on commit df398a1

Please sign in to comment.