FindNearestRiverSegment: Find nearest river segment

Description Usage Arguments Value

Description

Find the nearest line segment (river) to a point (station). Spatial objects should be in an appropriate coordinate system (i.e. not lat-long) otherwise they will be projected and this adds to processing time. If CRS does not match between the stations and the rivers they will both be projected into Canada Albers Equal Area conic.

Usage

1
FindNearestRiverSegment(spatialPoint, riverLines, HYBAS)

Arguments

spatialPoint

A SpatialPointsDataFrame of the desired station

riverLines

A SpatialLinesDataFrame of the HydroSHEDS river network

Value

dataframe of nearest lines (attribute table of matches)


ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.