[Qgis-user] How to probe raster values?

Martin Dobias wonder.sk at gmail.com
Thu May 15 09:59:29 PDT 2008


On Thu, May 15, 2008 at 12:12 PM, Borys Jurgiel <borys at wolf.most.org.pl> wrote:
>
> Martin, so may we expect, that the identify() method will be rewritten to
> match QMap-type arguments in the near future?

I've decided not to wait and have done the necessary changes, so from
SVN r8443 you're able to use identify() for rasters. A simple example
to print bands and the values at specified point:

ident = rlayer.identify(QgsPoint(15.30,40.98))
for (k,v) in ident.iteritems():
        print str(k),":",str(v)

cheers,
Martin



More information about the Qgis-user mailing list