GPX file reader

%LOADGPX Loads route points from a GPS interchange file
5.5K Downloads
Updated 18 May 2009

View License

% ROUTE = LOADGPX(FILENAME) Loads route point information from a .GPX
% GPS interchange file. This utility is not a general-purpose
% implementation of GPX reading and is intended mostly for reading the
% files output by the "gmap pedometer" tool.
%
% ROUTE is a Nx6 array where each row is a route point.
% Columns 1-3 are the X, Y, and Z coordinates.
% Columns 4-5 are latitude and longitude
% Column 6 is cumulative route length.
%
% Note that the mapping of latitude/longitude assumes an approximate spherical
% transformation to rectangular coordinates.
%
% Additional property/value arguments:
% LOADGPX(...,'ElevationUnits','meters',...) uses meters for elevation
% LOADGPX(...,'Viz',true,...) displays the route and elevation map
%
% For more information on the gmap pedometer and GPX output:
% http://www.gmap-pedometer.com/
% http://www.elsewhere.org/journal/gmaptogpx/
%
% See also xmlread

Cite As

karl critz (2026). GPX file reader (https://www.mathworks.com/matlabcentral/fileexchange/24154-gpx-file-reader), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Data Import and Analysis in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0