write_kml: Function to export geometries as a KML file.

View source: R/write_kml.R

write_kmlR Documentation

Function to export geometries as a KML file.

Description

Function to export geometries as a KML file.

Usage

write_kml(sp, file, force = TRUE)

Arguments

sp

Spatial object.

file

File name of KML file.

force

Should the projection be forced to WGS84? Default is TRUE because this is the standard for KML files.

Value

Invisible.

Author(s)

Stuart K. Grange

Examples

## 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)


skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.