Removes duplicated line segments, which can sometimes exist within a shapefile.

removeduplicates(rivers)

Arguments

rivers

The river network object to use

Value

A new river network object with duplicated segments removed, see rivernetwork

See also

line2network

Examples

data(abstreams0) zoomtoseg(seg=c(170,171,157),rivers=abstreams0)
abstreams1 <- removeduplicates(rivers=abstreams0)
#> Note: any point data already using the input river network must be re-transformed to river coordinates using xy2segvert() or ptshp2segvert().
zoomtoseg(seg=c(166,167,154),rivers=abstreams1)