Rasterize streams

Rasterizes an input vector stream network using the method described by Lindsay (2016)

References:

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
streamsFile = wd + "streams.shp"
baseFile = wd + "base.dep"
outputFile = wd + "output.dep"
nodataBackground = "true"
useFeatureNumAsOutput = "true"
outputCollisions = "false"
args = [streamsFile, baseFile, outputFile, nodataBackground, useFeatureNumAsOutput, outputCollisions]
pluginHost.runPlugin("RasterizeStreams", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def streamsFile = wd + "streams.shp"
def baseFile = wd + "base.dep"
def outputFile = wd + "output.dep"
def nodataBackground = "true"
def useFeatureNumAsOutput = "true"
def outputCollisions = "false"
String[] args = [streamsFile, baseFile, outputFile, nodataBackground, useFeatureNumAsOutput, outputCollisions]
pluginHost.runPlugin("RasterizeStreams", args, false)

Credits: