Saturday, 27 June 2015

Convert from shapefile to GPX with selected attributes


I have a points shapefile that originally came from a GPX file (imported using QGIS). The original GPX file contained waypoints only and has disappeared.


The shapefile has many attributes, but only some have data. Below are these attributes with two example data records (some decimal values discarded to fit onto one row).



  TYPE    IDENT    LAT     LONG      Y_PROJ        X_PROJ          COMMENT
WAYPOINT JS -31.6 22.6 -23610488.1 8084542.7 29-AUG-09 13:56
WAYPOINT PS -31.6 22.7 -23610333.7 8084487.4 29-AUG-09 14:01

A client of mine would like to convert the shapefile back into GPX, retaining the IDENT attribute as the label for each waypoint; he wants to use the GPX file in Garmin's Basecamp software. I have exported the shapefile sucessfully from both QGIS and ExpertGPS, but when I open the files in Garmin's Basecamp softare, each waypoint has only a sequential number as label.


When I look at the GPX files in a text editor, all the atrribute information is there. For example:



WAYPOINT

JS

-31.69530502
22.64745461
-23610488.11619880
8084542.75904646
29-AUG-09 13:56



0.00



1382.49
0.00
0.00




















Does anyone know how I could achieve this?


Thanks Hanlie




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...