New answers tagged gpx
writeOGR should be the way to go. I believe you were pretty close with the code you provided in the comments. However, adding a couple of things to the writeOGR function will help ensure that the file is written. If you add dataset_options="GPX_USE_EXTENSIONS=yes", then you will no longer get the error, "Creating Name field failed". Below is my example ...
You can try to search on this link. It gives some explanation on how to convert gpx to shp, but in arcmap. And you can try on this link, to search for method to do it in qgis.
Figuring out the GPX driver options for rgdal is headache-inducing. Writing a linestring as you've done here will cause it to write a route layer - if you write a multilinestring it should create a track layer. According to the documentation you should be able to make it be a track layer regardless using FORCE_GPX_TRACK=true but I've not been able to make ...
If you want to use TrackMatching, you hav e to convert your input files to one of their supported formats https://mapmatching.3scale.net/fileformats The custom CSV/Text format has the following structure: Waypoint ID, longitude, latitude, timestamp example: 44017039,5.38949431,52.187434426,"2013-03-18T07:22:38" ...
Yeah, this is a tricky one. The "dsn" argument is the output file and the "layer" argument is the GPX feature type (eg., waypoints). This is how ESRI file geodatabases work as well. There is no clear direction in this anywhere but you also have to use the "dataset_options" argument with "GPX_USE_EXTENSIONS=yes". I got this example to work. library(rgdal) ...
I know this does not answer the question in R. but if you have ArcGIS you can download this tool to convert and feature to GPX http://www.arcgis.com/home/item.html?id=067d6ab392b24497b8466eb8447ea7eb. Then you can upload those GPX coordinates to an app called http://www.gpxnavigator.com/.
You can use the writeOGR module to export to any geospatial format supported by OGR, including GPX. It is part of the rgdal package. Here's an article covering the writeOGR module and here's the OGR manual's GPX driver page
Top 50 recent answers are included