Extracts mid-points from streamlines

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