dissolve: Dissolve

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

View source: R/dissolve_zoom.R

Description

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

Usage

1

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.

Author(s)

Matt Tyers

See Also

line2network

Examples

1
2
3
4
5
data(Kenai2)
plot(x=Kenai2)

Kenai2dissolve <- dissolve(rivers=Kenai2)
plot(x=Kenai2dissolve)

Example output

Note: any point data already using the input river network must be re-transformed to river coordinates using xy2segvert() or ptshp2segvert().

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