Split vector lines

This tool can be used to divide longer vector lines into segments of a maximum specified length.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "lines.shp"
outputFile = wd + "output.shp"
maxLength = "100.0"
args = [inputFile, outputFile, maxLength]
pluginHost.runPlugin("SplitVectorLines", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "lines.shp"
def outputFile = wd + "output.shp"
def maxLength = "100.0"
String[] args = [inputFile, outputFile, maxLength]
pluginHost.runPlugin("SplitVectorLines", args, false)

Credits: