[Qgis-user] How to probe raster values?

cfarmer cfarmer at uvic.ca
Thu May 15 10:13:57 PDT 2008


Great move!

I've been looking for this functionality for python!

Thanks Martin.

Carson

> 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
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>


Carson Farmer
Spatial Pattern Analysis & Research Lab (SPAR)
Department of Geography, University of Victoria
www.geog.uvic.ca/spar/carson
cfarmer at uvic.ca





More information about the Qgis-user mailing list