I have a line made of 17959 nodes. I want to delete several range of nodes from that line with a Python command.
For example I want to delete all nodes between node 5530 to node 5861 and connect node 5530 to node 5861. Then I want to delete all nodes between node 14094 to node 14398 and connect node 14094 to node 14398.
Here is the raw code I am using now
layer = iface.addVectorLayer("input.shp", "", "ogr") layer.startEditing() QgsVectorLayerEditUtils::deleteVertex(QgsFeatureId "input.shp", int vertex)
I am using QGIS 2.18.15