[Gpsbabel-misc] GPSbabel convert from gpx file to csv file Can't get all elements of waypoints to b
Brought to you by:
robertl
From: rick <piz...@sa...> - 2015-11-22 22:02:35
|
New to mapping and trying to convert my downloaded garman.gpx file to .csv file. Intend to use csv to upload to my mapping database. Using Linux Ubuntu 14.04. My Code: *gpsbabel -w -i gpx -f "waypts.gpx" -o csv -F "waypts.csv"* Test file contents (3 waypoints) from Garman GPSmap76CSx: <?xml version="1.0" encoding="UTF-8"?> <gpx version="1.0" creator="GPSBabel - http://www.gpsbabel.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"> <time>2015-11-15T19:41:48Z</time> <bounds minlat="0.000000000" minlon="-122.661683299" maxlat="51.643981934" maxlon="0.000000000"/> <wpt lat="48.230667952" lon="-116.548649501"> <ele>630.505615</ele> <name>010</name> <cmt>15-DEC-13 4:22:27PM</cmt> <desc>15-DEC-13 4:22:27PM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="48.230802398" lon="-116.548433835"> <ele>634.350830</ele> <name>011</name> <cmt>15-DEC-13 4:33:22PM</cmt> <desc>15-DEC-13 4:33:22PM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="48.230802398" lon="-116.548433835"> <ele>636.994385</ele> <name>012</name> <cmt>15-DEC-13 4:33:31PM</cmt> <desc>15-DEC-13 4:33:31PM</desc> <sym>Flag, Blue</sym> </wpt> </gpx> *The conversion as the code above produces:* 48.23067, -116.54865, 15-DEC-13 4:22:27PM 48.23080, -116.54843, 15-DEC-13 4:33:22PM 48.23080, -116.54843, 15-DEC-13 4:33:31PM How can I get all the <wpt> elements (7) from the file?? Thanks for your help in advance R. |