[Qgis-developer] problem in using maptool
Borys Jurgiel
borysiasty at aster.pl
Sat Oct 24 04:16:20 EDT 2009
Dne pátek 23 října 2009 12:40:30 Arpita Singh napsal(a):
> Hi,
>
> I am new to QGIS, and I am trying to build an application.
> I downloaded your tutorial it worked nicely even i was able to use
> ZoomFullExtent, ZoomPrevious.
> but when I tried "qgsmaptoolidentify" it gave an error as:
>
> File "E:\project\viewer.py", line 158, in __init__
> self.toolIdentify = QgsMapToolIdentify(self.canvas)
> NameError: global name 'QgsMapToolIdentify' is not defined
Unfortunately there's no python bindings for this tool. AFAIK you can either
use the QgsMapToolEmitPoint tool or build your own tool class on the abstract
QgsMapTool (the latter is what I would do - take the clickfu or profiletool
plugins as an example) and then use the coordinates to find features.
More information about the Qgis-developer
mailing list