Acts like a spatial dissolve within a GIS environment. Simplifies a river network object by combining "runs" of segments with no other connections.

dissolve(rivers)

Arguments

rivers

The river network object to use

Value

A new river network object with segments combined

Note

This function is called within cleanup, which is recommended in most cases.

See also

line2network

Examples

data(Kenai2) plot(x=Kenai2)
Kenai2dissolve <- dissolve(rivers=Kenai2)
#> Note: any point data already using the input river network must be re-transformed to river coordinates using xy2segvert() or ptshp2segvert().
plot(x=Kenai2dissolve)