Skip to contents

This tool take a LINESTRING and either returns coordinates based on a set of river measures or river measures based on a set of given coordinates. Note that a single, unbranched LINESTRING should be used for shape, which may require calling the function multiple times for complex systems The shape should be constructed in the right direction as well (this should happen automatically if using the other functions).

Usage

RiverMeasureLL(shape, measures, points, crs)

Arguments

shape

A sf LINESTRING corresponding stream

measures

a vector of river measures, in the same units as shape

points

a dataframe of coordinates or sf object with POINT geometries

crs

A crs for the points

Value

a sf object with POINT geometries and matched coordinates and river measure data