We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents 047127b + 635e19a commit 75e004aCopy full SHA for 75e004a
python/plugins/sextante/gui/NumberInputDialog.py
@@ -86,7 +86,10 @@ def fillTree(self):
86
layers = QGisLayers.getRasterLayers()
87
for layer in layers:
88
for i in range(layer.bandCount()):
89
- stats = layer.bandStatistics(i)
+ if QGis.QGIS_VERSION_INT >= 10900:
90
+ stats = layer.dataProvider().bandStatistics(i+1)
91
+ else:
92
+ stats = layer.bandStatistics(i)
93
layerItem = QtGui.QTreeWidgetItem()
94
layerItem.setText(0, unicode(layer.name()))
95
layerItem.addChild(TreeValueItem("Mean", stats.mean))
0 commit comments