make_lines | R Documentation |
Converts GPS data/ waypoints to line features. Attribute data is maintained. Currently, this function generates points to transect by converting the POINT feature data to LINES sf features. A placeholder has been made to generate transect lines via the transect method created by M. Coghill.
make_lines( GPSPoints, Transects, method = "pts2lines", sortby = "none", tBuffer = 20, PROJ = 3005 )
GPSPoints |
is a simple features POINT object. Minimum attributes in this file include fields named 'id' and 'time'. Waypoints will be sorted by these two entries. |
Transects |
is the original planned transect simple feature. The 'id' attribute in this feature will be used to group points by their transect id. This transect id will be named 'TID' in the output data. |
method |
Multiple methods to be made available:
|
sortby |
Field in the points data to sort the points by. Defaults to "none" (i.e. assumes no sorting of data) |
tBuffer |
is optional with a default of 20m. This is the buffer distance to place around the transect. Waypoints outside this distance will not be considered. |
PROJ |
is an optional the epsg projection code with a default of BC Albers (3005). Data imported will be transfored to this projection and final data will be exported in this projection. |
## Convert GPS waypoints to line features (i.e. transect data) transects <- convert_pts2lines(gpsData, PlannedTransects)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.