This tool either removes or reclassifies points in a LiDAR point cloud that are above or below specified thresholds. The user must input a minimum elevation threshold, a maximum threshold, or both. At least one of the two threshold must be specified before running. If in-slice and out-of-slice values are provided, the tool will assign these class values to each point in the output LAS file, overriding any class data within the input file. Note that class values must fall within the range 0-31. When these parameters are not provided, the tool will simply remove the points in the input file that fall outside of the elvation bounds.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
input = wd + "input.las"
output = wd + "output.dep"
minz = "0.0"
maxz = "not specified"
in_slice = "not specified"
out_slice = "not specified"
args = [input, output, minz, maxz, in_slice, out_slice]
pluginHost.runPlugin("LidarElevationSlice", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputs = wd + "input1.las" + ";" + wd + "input2.las" + ";" + wd + "input3.las"
def output = wd + "output.dep"
def minz = "0.0"
def maxz = "500.0"
def in_slice = "2"
def out_slice = "1"
String[] args = [input, output, minz, maxz, in_slice, out_slice]
pluginHost.runPlugin("LidarElevationSlice", args, false)