The goal of this vignette is to demonstrate how to pull the stream network associated with a waterbody catchment. We will use the
extract_network function to accomplish this task using the built-in
Let’s start by pulling the coordinates associated with Lake Mendota, which will be the largest object (by area) in the waterbody object.
Next, we can use the
extract_network function to pull the stream network associated with Lake Mendota. Notice that we have set the
maxsteps parameter to Inf. If the network is anticipated to be very large it can be a good idea to set this to a discrete (lower) number to avoid returning very large lines objects.
Finally, we compare the stream network from a geometric buffer around Lake Mendota against the output of
extract_network to make sure everything is working properly.