make_tracks: Import and summarise tracklogs and waypoints.

Description Usage Arguments Value Examples

View source: R/make_tracks.R

Description

Import and summarise tracklogs and waypoints.

Usage

1
2
3
make_tracks(folder_gpx, river_shape, folder_result, date_start = NA,
  date_end = NA, make_shape = FALSE, do_waypoints = FALSE,
  make_shape_wp = FALSE, type_csv = NA)

Arguments

folder_gpx

Location of folder containing .gpx files.

river_shape

Location of file containing shapefile to define survey zones

folder_result

Location where results are saved.

date_start

Optional. Character of start date ("dd/mm/yyyy")

date_end

Optional. Character of end date ("dd/mm/yyyy")

make_shape

Optional. Logical (TRUE/FALSE). Write a shapefile with all tracklog points.

do_waypoints

Optional. Logical (TRUE/FALSE). Generate .csv with waypoints.

make_shape_wp

Optional. Logical (TRUE/FALSE). Generate shapefile with waypoints.

type_csv

Required. What type of .csv to export? ".csv" or ".csv2"

Value

Will generate R objects and export .csv and shapefiles.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
# 1) need to specify 3 locations.
#1.1) Location of shapefile with river zones
#1.2) Location of folder with .gpx files censu
#1.3) Location of folder for results

rs <- system.file("shapes/riverzones.shp", package = "rgps")
fg <- system.file("gpx", package = "rgps")
fr <- "/Location/of/result/folder"

# 2) run
list_track_data <- rgps::make_tracks(
  folder_gpx = fg, folder_result = fr,  river_shape = rs,
  do_waypoints = TRUE, make_shape = FALSE,
  make_shape_wp = FALSE,
  type_csv = ".csv")

## End(Not run)

darrennorris/rgps documentation built on Sept. 17, 2019, 9:23 a.m.