Hi list I hope questions for 2.X are still OK as I am using 2.18...
If I want to get the geometry of a selected feature on the current layer I can do: iface.mapCanvas().currentLayer().selectedFeatures()[0].geometry() In a Python layer action (defined in Layer Properties dialog), is there a similar way to get the geometry of the feature that the user interacted with to trigger the action? E.g. something like: signalSourceFeature.geometry() Thanks Peter D _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
