This tool can be used to to create a topographic profile. The user must specify the name of the input surface raster and a vector line file. The vector file must be of a PolyLine ShapeType. A topographic profile chart will be generated, with one profile for each line within the input shapefile. The line file can be generated through on-screen digitizing using the Create New Shapefile tool. See this link for more detailed instructions on how to carry out on-screen digitizing.
In addition to the output chart, the user may optionally specify the name of a comma-separated value (*.csv) text file to output the profile to.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
surfaceFile = wd + "surface.dep"
lineFile = wd + "profileLines.shp"
args = [surfaceFile, lineFile]
pluginHost.runPlugin("Profile", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def surfaceFile = wd + "surface.dep"
def lineFile = wd + "profileLines.shp"
def outFile = wd + "profile.csv"
String[] args = [surfaceFile, lineFile, outFile]
pluginHost.runPlugin("Profile", args, false)