linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

[plugin] Move node method required #21

Closed SPlanzer closed 5 years ago

SPlanzer commented 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

SPlanzer commented 5 years ago

Looking in the wrong place.

iface.actionVertexTool does exists