cts5_create_kml | R Documentation |
read technical, autotest or default files and create a KML or GPX file to be read with Google Earth, OpenCPN ...
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
)
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 |
a KML or GPX file
# Automatic
cts5_create_kml()
# with filenamelist
tech<-cts5_readalltech()
cts5_create_kml(filenamelist=tech$filename)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.