valuetoolotf.patch
/home/richard/dev/qgis/plugins/valuetool/valuewidget.py 2011-09-06 14:26:01.000000000 +0200 | ||
---|---|---|
144 | 144 |
self.ymin=1e38 |
145 | 145 |
self.ymax=-1e38 |
146 | 146 | |
147 | ||
148 |
mapCanvasSrs = self.iface.mapCanvas().mapRenderer().destinationSrs() |
|
149 | ||
147 | 150 |
for layer in rasterlayers: |
148 |
isok,ident = layer.identify(mapPos) |
|
151 | ||
152 |
layerSrs = layer.srs() |
|
153 |
pos = mapPos |
|
154 |
if not mapCanvasSrs == layerSrs: |
|
155 |
srsTransform = QgsCoordinateTransform(mapCanvasSrs, layerSrs) |
|
156 |
pos = srsTransform.transform(mapPos) |
|
157 | ||
158 |
isok,ident = layer.identify(pos) |
|
149 | 159 |
if not isok: |
150 |
continue
|
|
160 |
continue |
|
151 | 161 | |
152 | 162 |
layername=unicode(layer.name()) |
153 |
|
|
163 | ||
154 | 164 |
if layer.providerKey()=="grassraster": |
155 | 165 |
if not ident.has_key(QString("value")): |
156 | 166 |
continue |