[ gpsdrive ] .gpx conversion

chris h chris123 at magma.ca
Wed Oct 1 03:08:25 AKDT 2008


On Wednesday 01 October 2008 05:11:21 Hamish wrote:
> Chris:
> > Merging way3.txt with gpsdrive's way.txt file created all the needed
> > waypoint as defined by the gpx file and rendered them correctly,
> > complete with assigned name.
>
> note you can have a whole bunch of different way_*.txt files and pick which
> one to display in the Preferences menu.

Just tested that and it works fine even on 2.10pre4

> > Last issue is to extract the route from the gpx file as
> > this does not display.

> more details please.

Route only displays when you tick off tracks otherwise only waypoints appear. 
The accuracy of the route however is dependent on the scale of the map. It 
seems that the algorithm? used to draw the route wants to connect the end 
points at higher levels of zoom. Once you zoom down to a lower scale the 
route aligns itself with the waypoints. In some cases this has to be as low 
as 1500 pending how close the tracks are together. ie: entering and leaving 
port. Its actually easier to understand via a graphic. 

Then again I am working on a file not generated by me rather a friend who is 
in transit down the east coast of Canada/US...generated by a garmin gps unit 
and extracted using easy gps according to the file data on windows XP. 

> what do the tags in the internals of the gpx file look like?

file is almost 1 meg but the interesting part is at the top;

----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="EasyGPS 
2.3.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 
http://www.topografix.com/GPX/1/1/gpx.xsd 
http://www.topografix.com/GPX/gpx_overlay/0/3 
http://www.topografix.com/GPX/gpx_overlay/0/3/gpx_overlay.xsd 
http://www.topografix.com/GPX/gpx_modified/0/1 
http://www.topografix.com/GPX/gpx_modified/0/1/gpx_modified.xsd 
http://www.garmin.com/xmlschemas/GpxExtensions/v1 
http://www.garmin.com/xmlschemas/GpxExtensions/v1/GpxExtensionsv1.xsd">
<metadata>
<bounds minlat="45.91631662" minlon="-64.89055907" maxlat="48.47219132" 
maxlon="-62.74874267"/>
<extensions>
<time 
xmlns="http://www.topografix.com/GPX/gpx_modified/0/1">2008-09-11T00:03:32.968Z</time>
</extensions>
</metadata>
<wpt lat="47.45326479" lon="-64.70667218">
<ele>2.05</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>1000 NM</name>
<cmt>03-SEP-08 10:43</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>1000 NM</label_text>
</label>
</extensions>
</wpt>
<wpt lat="46.34648326" lon="-63.85664997">
<ele>7.34</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>DE1</name>
<cmt>05-SEP-08 00:29</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>DE1</label_text>
</label>
<WaypointExtension xmlns="http://www.garmin.com/xmlschemas/GpxExtensions/v1">
<Depth>-0.0</Depth>
</WaypointExtension>
</extensions>
</wpt>
<wpt lat="46.38036660" lon="-63.82229993">
<ele>2.29</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>DE7</name>
<cmt>04-SEP-08 08:34</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>DE7</label_text>
</label>
</extensions>
</wpt>
<wpt lat="47.08273329" lon="-64.88731661">
<ele>5.17</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>ESCUMINAC</name>
<cmt>31-AUG-08 11:08</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>ESCUMINAC</label_text>
</label>
</extensions>
</wpt>
<wpt lat="48.41911661" lon="-64.31744996">
<time>2008-09-10T23:50:40.781Z</time>
<name>ESPOIR</name>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>ESPOIR</label_text>
</label>
</extensions>
</wpt>
<wpt lat="46.38733331" lon="-63.78909996">
<ele>3.49</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>LIGHTHOUSE</name>
<cmt>05-SEP-08 00:32</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>LIGHTHOUSE</label_text>
</label>
</extensions>
</wpt>
<wpt lat="45.91631662" lon="-62.81693331">
<ele>28.00</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>N8</name>
<cmt>09-SEP-08 08:35</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>N8</label_text>
</label>
</extensions>
</wpt>
<wpt lat="45.94621662" lon="-62.75053329">
<ele>11.66</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>NS2</name>
<cmt>09-SEP-08 08:37</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>NS2</label_text>
</label>
</extensions>
</wpt>
<wpt lat="46.72491664" lon="-64.74123329">
<time>2008-09-10T23:50:40.781Z</time>
<name>RICH</name>
<cmt>03-SEP-08 20:28</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>RICH</label_text>
</label>
</extensions>
</wpt>
<wpt lat="47.78023328" lon="-64.56376660">
<time>2008-09-10T23:50:40.781Z</time>
<name>STE  MARIE</name>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>STE  MARIE</label_text>
</label>
</extensions>
</wpt>
<wpt lat="47.94154996" lon="-64.45074997">
<time>2008-09-10T23:50:40.781Z</time>
<name>WILSON PT</name>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>WILSON PT</label_text>
</label>
</extensions>
</wpt>
<wpt lat="46.52711663" lon="-64.54759992">
<ele>31.13</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>X17</name>
<cmt>03-SEP-08 20:30</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>X17</label_text>
</label>
</extensions>
</wpt>
<wpt lat="46.15878328" lon="-63.66241663">
<ele>16.47</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>XB</name>
<cmt>09-SEP-08 08:32</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>XB</label_text>
</label>
</extensions>
</wpt>
<wpt lat="46.23589998" lon="-63.79854997">
<time>2008-09-10T23:50:40.781Z</time>
<name>XB4-5</name>
<cmt>09-SEP-08 08:23</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>XB4-5</label_text>
</label>
</extensions>
</wpt>
<wpt lat="46.45116661" lon="-64.59574993">
<ele>27.28</ele>
<time>2008-09-10T23:50:40.781Z</time>
<name>XV2</name>
<cmt>03-SEP-08 20:33</cmt>
<sym>Waypoint</sym>
<type>Other</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>XV2</label_text>
</label>
</extensions>
</wpt>
<trk>
<name>03-SEP-08</name>
<type>GPS Tracklog</type>
<extensions>
<label xmlns="http://www.topografix.com/GPX/gpx_overlay/0/3">
<label_text>03-SEP-08</label_text>
</label>
</extensions>
<trkseg>
<trkpt lat="47.78018475" lon="-64.56484795">
<ele>22.73</ele>
</trkpt>
<trkpt lat="47.78020621" lon="-64.56484795">
<ele>0.62</ele>
</trkpt>
<trkpt lat="47.78022767" lon="-64.56471921">
<ele>2.06</ele>
</trkpt>
much more lat and lon data.
----------------------------------


> Options -> Import -> GPX Route?

Need to upgrade if this is available. Not available on pre4


Best and thanks

-- 
/ch


More information about the GPSdrive mailing list