Extract nodes

This tool converts vector lines or polygons into points. The user must specify the name of the input shapefile, which must be of a polyline or polygon base shape type, and the name of the output point-type shapefile.

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.shp"
outputFile = wd + "output.shp"
args = [inputFile, outputFile]
pluginHost.runPlugin("ExtractNodes", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.shp"
def outputFile = wd + "output.shp"
String[] args = [inputFile, outputFile]
pluginHost.runPlugin("ExtractNodes", args, false)

Credits: