Export dataframe as a multiline gpx

Here is my dataframe, providing the start and end gps coordinated for 8 transect lines.

> tr_ml
     SU_ID   S_E    SU_LAT  SU_LONG
1  SIKF-01 Start -18.93090 27.25571
2  SIKF-01   End -18.74639 27.42484
3  SIKF-02 Start -18.74002 27.33684
4  SIKF-02   End -18.88981 27.19884
5  SIKF-03 Start -18.84598 27.14549
6  SIKF-03   End -18.71061 27.26925
7  SIKF-04 Start -18.66001 27.22139
8  SIKF-04   End -18.80430 27.08899
9  SIKF-05 Start -18.75818 27.03667
10 SIKF-05   End -18.60662 27.17624
11 SIKF-06 Start -18.60709 27.08295
12 SIKF-06   End -18.71641 26.98082
13 SIKF-07 Start -18.67284 26.92686
14 SIKF-07   End -18.56330 27.02709
15 SIKF-08 Start -18.53603 26.95814
16 SIKF-08   End -18.61973 26.88082

I would like to export this into a gpx and geopackage, so that when I bring those files into QGIS I can visualise all eight lines on a map.

I assume I could use writeOGR but not sure how.

Thanks very much,

Kind regards,

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.