Hello Michael,
Your script has a few oddities with it. Can you try the following, being sure to update your working directory and DEM file names as appropriate:
import whitebox_workflows as wbw
wbe = wbw.WbEnvironment()
wbe.verbose = True
wbe.working_directory = 'path of working directory goes here'
dem = wbe.read_raster('name of raster file goes here')
output1 = wbe.breakline_mapping(
dem,
threshold=3.0,
min_length=2
)
wbe.write_vector(output1, file_name='breaklines.shp')
Of particular note, unlike with WhiteboxTools, Whitebox Workflows for Python functions take in-memory data objects (in this case a raster) and output in-memory data objects (in this case a vector). I hope that helps to resolve your issue.
Regards,
John
--
You received this message because you are subscribed to the Google Groups "WhiteboxTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
whiteboxtool...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/whiteboxtools/c7c52d39-57a3-45b6-93a8-605abfd1dd9fn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.