[Qgis-user] How to probe raster values?

Martin Dobias wonder.sk at gmail.com
Tue May 13 11:08:01 PDT 2008


On Tue, May 13, 2008 at 7:10 PM, Borys Jurgiel <borys at wolf.most.org.pl> wrote:
> Hi Everybody!
>
>  I'm working on a plugin in Python and I can't find any way to read values (at
>  specified coordinates) from raster layers.
>
>  I've tried with "identify" method of QgsRasterLayer object, but it's
>  unavailable in my QGIS 0.10. Is this method depreciated, or only there is no
>  Python binding for it yet?
>
>  Is there any other way, or is that my time for switch to C? :)

Hi,

identify() method does exist, however it's not included in PyQGIS
because of use of std::map as an argument (which is currently
discouraged in favour of QMap). I'm affraid there's not other way in
Python to do read values from raster layer.

Martin



More information about the Qgis-user mailing list