Closed SPlanzer closed 5 years ago
The QgisInterface.actionNodeTool is no longer available in QGIS3
Currently the plugins plugin.py class triggers this tool to begin node editing.
Below; connecting the icon to the geom edit method: https://github.com/linz/gazetteer/blob/2e6057df214e487cd0dac7e01b13b67e135fd928/src/NZGBplugin/Plugin.py#L100
Below the action (actionNodeTool) triggered : https://github.com/linz/gazetteer/blob/2e6057df214e487cd0dac7e01b13b67e135fd928/src/NZGBplugin/Plugin.py#L247-L249
As there is no longer an actionNodeTool tool this edit node action will need to be connected to a custom method that employs the new QgsVectorLayer.moveVertex()
Interestingly this API break is not mentioned in the API Break Doc
Looking in the wrong place.
iface.actionVertexTool does exists
The QgisInterface.actionNodeTool is no longer available in QGIS3
Currently the plugins plugin.py class triggers this tool to begin node editing.
Below; connecting the icon to the geom edit method: https://github.com/linz/gazetteer/blob/2e6057df214e487cd0dac7e01b13b67e135fd928/src/NZGBplugin/Plugin.py#L100
Below the action (actionNodeTool) triggered : https://github.com/linz/gazetteer/blob/2e6057df214e487cd0dac7e01b13b67e135fd928/src/NZGBplugin/Plugin.py#L247-L249
As there is no longer an actionNodeTool tool this edit node action will need to be connected to a custom method that employs the new QgsVectorLayer.moveVertex()
Interestingly this API break is not mentioned in the API Break Doc