CTS5_create_kml: create a KML or GPX file from technical files

cts5_create_kmlR Documentation

create a KML or GPX file from technical files

Description

read technical, autotest or default files and create a KML or GPX file to be read with Google Earth, OpenCPN ...

Usage

cts5_create_kml(
  pattern = ".*autotest.*.txt|.*technical.txt|.*default.*.txt",
  filenamelist = NULL,
  output = "PositionAPMT.kml",
  start = 1,
  CycleToProcess = NULL,
  path = ".",
  id = "cycle",
  color = "ff00ffff",
  outputtype = "kml",
  namevector = NULL
)

Arguments

pattern

pattern used to select files

filenamelist

list of files to open

output

name of the KML or GPX file

start

First Cycle number to process.

CycleToProcess

vector of float cycle to include in the KML file. If Null, all cycle will be included

id

id to identify points in the file, either : "date", "cycle" or "relativecycle"

color

: Color of points in KML file Red = ff0000ff, Yellow = ff00ffff, Blue = ffff0000, Green = ff00ff00, Purple = ff800080, Orange = ff0080ff, Brown = ff336699, Pink = ffff00ff

namevector

: vector of names to be used as point's name.

type

"kml" or "gpx" : choose file type

Value

a KML or GPX file

Examples

 

# Automatic
cts5_create_kml()

# with filenamelist
tech<-cts5_readalltech()
cts5_create_kml(filenamelist=tech$filename)
 


EdLeymarie/USEA_R documentation built on July 16, 2025, 1 p.m.