to_spatial: Extracts mid-points from streamlines

Description Usage Arguments Value

View source: R/to_spatial.R

Description

Extracts mid-points from streamlines

Usage

1
2
3
4
5
6
to_spatial(
  spatial_data,
  coordx = "POINT_X",
  coordy = "POINT_Y",
  .crs = sp::CRS("+proj=longlat +datum=WGS84")
)

Arguments

spatial_data

a data.frame with columns coordx and coordy

coordx

character, column name for x coordinates

coordy

character, column name for y coordinates

.crs

a reference coordinate system to project the points to

Value

a SpatialPointsDataFrame


hrvg/AIgeomorphologist documentation built on Dec. 20, 2021, 4:49 p.m.