Opens a KML file in write mode and initiates the KML header. The same file connection is further accessible by other kml_*()
functions such as kml_layer()
and kml_close()
. kml_View
tries to open the produced file using the default application.
kml_open(file.name, folder.name = file.name, kml_open = TRUE,
kml_visibility = TRUE, overwrite = TRUE, use.Google_gx = FALSE,
kml_xsd = get("kml_xsd", envir = plotKML.opts),
xmlns = get("kml_url", envir = plotKML.opts),
xmlns_gx = get("kml_gx", envir = plotKML.opts))
KML file name
character string; KML folder name
logical; specify whether to open the folder by default
logical; specify whether to make the whole folder visible
logical; if TRUE, "name" will be overwritten if it exists
logical; specify whether to use the Google's extended schema
URL of the KML scheme to be used
URL of the OGC KML standard
URL of the extended standard
These lower level functions can be used to create customized multi-layered KML files. See plotKML package homepage / manual for more examples.