Skip to content
Permalink
Browse files

fixed #5949

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@320 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf
volayaf committed Jul 30, 2012
1 parent 733522f commit 148cbfb1520a9a6ff322fd98bdd6aab8127dff5c
Showing with 4 additions and 3 deletions.
  1. +1 −1 src/sextante/gui/ExtentSelectionPanel.py
  2. +3 −2 src/sextante/gui/NumberInputDialog.py
@@ -108,7 +108,7 @@ def useLayerExtent(self):
layers = QGisLayers.getAllLayers()
for layer in layers:
extents.append(layer.name())
extentsDict[str(layer.name())] = layer.extent()
extentsDict[layer.name()] = layer.extent()
item, ok = QtGui.QInputDialog.getItem(self, "Select extent", "Use extent from", extents, False)
if ok:
item = str(item)
@@ -46,7 +46,7 @@ def fillTree(self):
layers = QGisLayers.getAllLayers()
for layer in layers:
layerItem = QtGui.QTreeWidgetItem()
layerItem.setText(0, str(layer.name()))
layerItem.setText(0, unicode(layer.name()))
layerItem.addChild(TreeValueItem("Min X", layer.extent().xMinimum()))
layerItem.addChild(TreeValueItem("Max X", layer.extent().xMaximum()))
layerItem.addChild(TreeValueItem("Min Y", layer.extent().yMinimum()))
@@ -63,7 +63,7 @@ def fillTree(self):
for i in range(layer.bandCount()):
stats = layer.bandStatistics(i)
layerItem = QtGui.QTreeWidgetItem()
layerItem.setText(0, str(layer.name()))
layerItem.setText(0, unicode(layer.name()))
layerItem.addChild(TreeValueItem("Mean", stats.mean))
layerItem.addChild(TreeValueItem("Std. deviation", stats.stdDev))
layerItem.addChild(TreeValueItem("Max value", stats.maximumValue))
@@ -89,6 +89,7 @@ def fillTree(self):
extentItem.addChild(TreeValueItem("Min Y", extent.yMinimum()))
extentItem.addChild(TreeValueItem("Max y", extent.yMaximum()))
canvasItem.addChild(extentItem)

def addValue(self):
item = self.tree.currentItem()
if isinstance(item, TreeValueItem):

0 comments on commit 148cbfb

Please sign in to comment.
You can’t perform that action at this time.