write_gpx | R Documentation |
write_gpx
uses rgdal::writeOGR
as the GPX writer. GPX files do
not support polygons, therefore polygon geometries will be coerced to lines.
write_gpx(sp, file, force = TRUE)
sp |
Spatial object. |
file |
File name of GPX file. |
force |
Should the projection be forced to WGS84? Default is |
Invisible.
Stuart K. Grange
## Not run:
# Export a GPX file containing points
write_gpx(sp_bus_stations, "~/Desktop/bus_stations.gpx")
# Export GPX file which contains a track
write_gpx(sp_gpx_track, "~/Desktop/drive_to_bath.gpx")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.