Hi,
thanks for your hints, I think I am on the right track now. I had a look at
the value tool plugin and tried to adapt the method accordingly:
def sampleRaster20(self, layer, x, y):
#success, data = layer.dataProvider().identify(QgsPoint(x,y))
success, data =
from the api
http://www.qgis.org/api/classQgsRasterIdentifyResult.html#a8537d25fdff215e7e9650b71a0a16783
results() returns a QMapint, QVariant (one item for each band), it
does not return a tuple, so you should actually call
ident =
Hi
On Fre 02 Aug 2013 13:50:08 CEST, Etienne Tourigny wrote:
for each band, if the point is outside of the raster extent or is
nodata, the value will be a null QVariant (i.e. QVariant()) which in
python is None.
It will be a QPyNullVariant so doing
value = QPyNullVariant( int )
if not
On Fri, Aug 2, 2013 at 9:37 AM, Matthias Kuhn matthias.k...@gmx.ch wrote:
Hi
On Fre 02 Aug 2013 13:50:08 CEST, Etienne Tourigny wrote:
for each band, if the point is outside of the raster extent or is
nodata, the value will be a null QVariant (i.e. QVariant()) which in
python is None.
It
On Fre 02 Aug 2013 15:13:04 CEST, Etienne Tourigny wrote:
On Fri, Aug 2, 2013 at 9:37 AM, Matthias Kuhn matthias.k...@gmx.ch wrote:
Hi
On Fre 02 Aug 2013 13:50:08 CEST, Etienne Tourigny wrote:
for each band, if the point is outside of the raster extent or is
nodata, the value will be a null
On Fri, Aug 2, 2013 at 10:22 AM, Matthias Kuhn matthias.k...@gmx.ch wrote:
On Fre 02 Aug 2013 15:13:04 CEST, Etienne Tourigny wrote:
On Fri, Aug 2, 2013 at 9:37 AM, Matthias Kuhn matthias.k...@gmx.ch wrote:
Hi
On Fre 02 Aug 2013 13:50:08 CEST, Etienne Tourigny wrote:
for each band, if the
On Fre 02 Aug 2013 15:52:19 CEST, Etienne Tourigny wrote:
On Fri, Aug 2, 2013 at 10:22 AM, Matthias Kuhn matthias.k...@gmx.ch wrote:
On Fre 02 Aug 2013 15:13:04 CEST, Etienne Tourigny wrote:
On Fri, Aug 2, 2013 at 9:37 AM, Matthias Kuhn matthias.k...@gmx.ch wrote:
Hi
On Fre 02 Aug 2013
Hi,
thanks for the hint. And if I need the value of the raster? If I understand
correctly, ident will always be 1, if I have a 1 band raster layer. But how
can I get the value at QgsPoint(x,y) of the raster? I don't understand that
from the value tool plugin.
In QGIS 1.8 I use :
success, data =
On Fri, Aug 2, 2013 at 11:58 AM, Otto Dassau das...@gbd-consult.de wrote:
Hi,
thanks for the hint. And if I need the value of the raster? If I understand
correctly, ident will always be 1, if I have a 1 band raster layer. But how
can I get the value at QgsPoint(x,y) of the raster? I don't
Hi Etienne and Matthias,
fine - that was missing.
Thanks a lot
Otto
Am Fri, 2 Aug 2013 12:04:09 -0300
schrieb Etienne Tourigny etourigny@gmail.com:
On Fri, Aug 2, 2013 at 11:58 AM, Otto Dassau das...@gbd-consult.de wrote:
Hi,
thanks for the hint. And if I need the value of the
Hi otto,
A super wild guess: whats the value of IdentifyFormat in your call?
Hth,
Marc
Otto Dassau das...@gbd-consult.de schrieb:
Hi,
I want to update a plugin from 1.8 to QGIS 2.0 and it throws following
error:
Traceback (most recent call last):
File
Have a look at the source of the value tool plugin, it calls the identify()
method and has been updated to 2.0 api.
Etienne
On Thu, Aug 1, 2013 at 1:58 PM, Otto Dassau das...@gbd-consult.de wrote:
Hi,
I want to update a plugin from 1.8 to QGIS 2.0 and it throws following
error:
Traceback
12 matches
Mail list logo