[QGIS-Developer] Implement polygon feature selection using QgsMapTool in QgsMapCanvas

Ashutosh Vaish ashutoshvaish6397 at gmail.com
Fri Jun 15 16:30:42 PDT 2018


Thanks a lot. I figured it out!
https://gis.stackexchange.com/questions/286376/is-there-any-polygon-select-map-tool-for-qgsmapcanvas
here's my working, please check it out if you want too.

On Fri, Jun 15, 2018 at 5:06 PM Denis Rouzaud <denis.rouzaud at gmail.com>
wrote:

> Hi,
>
> You should be able to sub-class QgsMapToolIdentify or
> QgsMapToolIdentifyFeature
> see the documentation
> https://qgis.org/pyqgis/master/gui/Map/QgsMapToolIdentify.html
> https://qgis.org/pyqgis/master/gui/Map/QgsMapToolIdentifyFeature.html
>
> Denis
>
> Le ven. 15 juin 2018 à 04:42, Ashutosh Vaish <ashutoshvaish6397 at gmail.com>
> a écrit :
>
>> I'm trying to develop a plugin which contains it's own QgsMapCanvas. I
>> need the user to select a feature on the map canvas which requires the map
>> tool to replicate the function of the Select Feature of the Qgis
>> Interface.[iface.actionSelect().trigger()]. Is there any way to do it?
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180616/09207f83/attachment.html>


More information about the QGIS-Developer mailing list