Rank: 2563 based on 41 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 geodetic, mapping, latitude, longitude, gps, cycling 41 6
  • 4.4
4.4 | 7 ratings
Comments and Ratings on karl's Files View all
Updated File Comment by Comments Rating
24 Apr 2012 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Janod, François

sorry, I forgot this line, to put before the switch line:

lat_mean=mean(route(:,COL_LAT));

24 Apr 2012 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Janod, François

Useful contribution, but mistakenly computed for meter units. should be like that:
KM_PER_ARCMINUTE = 1.852;
route(:,COL_X:COL_Y) = KM_PER_ARCMINUTE*1000*60*route(:,COL_X:COL_Y);

and forget to take into account latitude. must add this line:
route(:,COL_X) = route(:,COL_X)*cos(lat_mean/180*pi);

all in all should be like that:

case 'feet'
MILES_PER_ARCMINUTE = 1.15;
route(:,COL_X:COL_Y) = MILES_PER_ARCMINUTE*5280*60*route(:,COL_X:COL_Y);
route(:,COL_X) = route(:,COL_X)*cos(lat_mean/180*pi); %correction de latitude
distMult = 1/5280; %5280 feets = 1 Mile
case 'meters'
KM_PER_ARCMINUTE = 1.852;
route(:,COL_X:COL_Y) = KM_PER_ARCMINUTE*1000*60*route(:,COL_X:COL_Y);
route(:,COL_X) = route(:,COL_X)*cos(lat_mean/180*pi);
distMult = 1/1000;

14 Mar 2012 GPX file reader %LOADGPX Loads route points from a GPS interchange file Author: karl critz Bernd

very helpful...but I also had to impement the changes from Georg. please think about updating the file

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;

Contact us