get_target_points: Extracts mid-points from streamlines

Description Usage Arguments Value

View source: R/geospatial_data_loading.R

Description

Extracts mid-points from streamlines

Usage

1
2
3
4
5
get_target_points(
  target_streamlines,
  .crs = sp::CRS("+proj=longlat +datum=WGS84"),
  as.df = TRUE
)

Arguments

target_streamlines

a SpatialLinesDataFrame

.crs

a reference coordinate system to project the points to

as.df

logical, default to TRUE, defines if a SpatialPoints or a data.frame object is returned

Value

a data.frame with columns Name, long and lat


hrvg/RiverML documentation built on Oct. 12, 2020, 10:40 a.m.