Ticket #3807 (new bug)
QgsRasterLayer.identify() is always True
| Reported by: | ricardogsilva | Owned by: | borysiasty |
|---|---|---|---|
| Priority: | major: does not work as expected | Milestone: | Version 2.0.0 |
| Component: | Python plugins and bindings | Version: | |
| Keywords: | Cc: | ||
| Platform Version: | Platform: | Debian | |
| Must Fix for Release: | No | Awaiting user input: | no |
Description
Using the python bindings, when trying to identify a point outside of current raster layer, The QgsRasterLayer?.identify() method is returning:
(True, {PyQt?4.QtCore?.QString(u'Band 1'): PyQt?4.QtCore?.QString(u'out of extent')})
which doesn't make much sense IMO. If the result is the "out of extent" string, then the identifying has failed, so the first entry of the tuple should be False, instead of True.
Change History
Note: See
TracTickets for help on using
tickets.