Rank: 1565 based on 39 downloads (last 30 days) and 1 file submitted
photo

karl critz

E-mail
Lat/Long
42.35971, -71.09203

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by karl
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 May 2009 Screenshot GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz cycling, gps, longitude, latitude, mapping, geodetic 39 3
  • 5.0
5.0 | 5 ratings
Comments and Ratings on karl's Files View all
Updated File Comment by Comments Rating
02 Sep 2011 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Evan

Can't figure out the units of the X, Y, and Z columns. I did the same as George to get gpx files with trkpt instead of rtept. Also converted time to Matlab serial time using datenum.

09 May 2011 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Ogris, Georg

To read my Garmin data change

ptList = d.getElementsByTagName('rtept');
into
ptList = d.getElementsByTagName('trkpt');

and add:

tim = pt.getElementsByTagName('time') ;
    timChar = char(tim.item(0).getTextContent) ;
    route(i,COL_TIMEVEC) = datevec([timChar(1:10) ' ' timChar(12:19)]) ;
    

before the end of the main for-loop
with

COL_TIMEVEC = 7:12;

09 May 2011 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Ogris, Georg
26 Jul 2010 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Longin, David
14 Jan 2010 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Bliss, Andrew

This is a useful, good file. A few adjustments could improve it.

To allow the output, 1st line should be:
function route=loadgpx(fileName,varargin)

Calculate range before the viz section, so it can be output too if the viz option is off.

Something about the units is off but I didn't take the time to figure out what is wrong with it... gmaptogpx is outputting elevations in meters, right?

Thanks!

Top Tags Applied by karl
cycling, geodetic, gps, latitude, longitude
Files Tagged by karl
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 May 2009 Screenshot GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz cycling, gps, longitude, latitude, mapping, geodetic 39 3
  • 5.0
5.0 | 5 ratings

Contact us at files@mathworks.com