cleanup_verts: Interactive Cleanup of the Vertices of Individual Segments

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/cleanup_verts.R

Description

A trial version of a function for deep-cleaning a river network.

Sometimes a shapefile contains errors that are not obvious at an initial check, typically vertices that should not be there.

This function steps through each segment in sequence, and allows the user to interactively remove vertices.

Usage

1
cleanup_verts(rivers, startwith = 1)

Arguments

rivers

The river network object to use

startwith

The segment (number) to start with, defaulting to 1.

Value

A new river network object, see rivernetwork

Note

Stepping through a large and messy river network can be time-consuming. To resume a cleanup session, use the startwith= argument and the last returned river network. For example, if rivers1 <- cleanup_verts(rivers) were initially called and the user selected "save & close" at segment 100, cleanup can be resumed by calling rivers2 <- cleanup_verts(rivers1, startwith=100).

Author(s)

Matt Tyers

See Also

line2network

Examples

1
2
3
4
5
data(abstreams0,Koyukuk0,Kenai1)

# abstreams_fixed1 <- cleanup_verts(abstreams0)
# Koyukuk <- cleanup(Koyukuk0)
# Kenai <- cleanup(Kenai1)

riverdist documentation built on Sept. 10, 2021, 9:06 a.m.