kml_open | R Documentation |
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))
file.name |
KML file name |
folder.name |
character string; KML folder name |
kml_open |
logical; specify whether to open the folder by default |
kml_visibility |
logical; specify whether to make the whole folder visible |
overwrite |
logical; if TRUE, "name" will be overwritten if it exists |
use.Google_gx |
logical; specify whether to use the Google's extended schema |
kml_xsd |
URL of the KML scheme to be used |
xmlns |
URL of the OGC KML standard |
xmlns_gx |
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.
Pierre Roudier, Tomislav Hengl and Dylan Beaudette
plotKML-method
, kml_layer
, kml-methods
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.