write_kml | R Documentation |
Function to export geometries as a KML file.
write_kml(sp, file, force = TRUE)
sp |
Spatial object. |
file |
File name of KML file. |
force |
Should the projection be forced to WGS84? Default is |
Invisible.
Stuart K. Grange
## Not run:
# Export a KML file containing points
write_kml(sp_bus_stations, "~/Desktop/bus_stations.kml")
# Export KML file which contains a track
write_kml(sp_track, "~/Desktop/drive_to_bath.kml")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.