calculateconnections: Calculate the Connectivity Matrix for a River Network

View source: R/riverdist_1.R

calculateconnectionsR Documentation

Calculate the Connectivity Matrix for a River Network

Description

Calculates the connectivity matrix for a river network, during import and editing. Called internally.

Usage

calculateconnections(lines, tolerance)

Arguments

lines

A list of coordinate matrices, each corresponding to a line segment.

tolerance

The spatial tolerance for establishing connectivity.

Value

A matrix with topological information. See the $connections element of the rivernetwork-class.

Author(s)

Matt Tyers

Examples

Gulk_connections <- calculateconnections(lines=Gulk$lines, tolerance=Gulk$tolerance)

riverdist documentation built on April 12, 2025, 2:24 a.m.