[Qgis-user] How to probe raster values?
wonder.sk at gmail.com
Tue May 13 14:08:01 EDT 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? :)
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.
More information about the Qgis-user