gpxread
Read GPX file
Description
reads
point data from the GPS Exchange Format (GPX) file, P
= gpxread(filename
)filename
,
and returns an n-by-1 geopoint vector, P
,
where n is the number of waypoints, or points that
define a route or track.
gpxread
searches the file first for waypoints,
then routes, and then tracks, and it returns the first type of data
it finds. The Metadata field of P
identifies
the feature type ('waypoint'
, 'track'
,
or 'route'
) and any additional metadata
associated with waypoint, route, or track. If the file contains multiple
tracks or routes, P
contains the points that define
the first track or route in the file. If gpxread
cannot
find any features in the file, it returns an empty geopoint vector.
returns
data from the GPX file in a geoshape vector, rather than a geopoint
vector, only if the file contains track or route data and you specify
the value of S
= gpxread(___,'Index',V)'Index'
as a vector, V
.
Use this syntax when you want to work with the data as a line, rather
than as a collection of points.
___ = gpxread(___,
reads
data from a GPX file with additional options, specified by one or
more Name,Value
)Name,Value
pair arguments, that control various
characteristics of the import. Name
is the argument
name and Value
is the corresponding value. Name
must
appear inside single quotes ('')
and is case insensitive.
You can specify several name-value pair arguments in any order.
Examples
Input Arguments
Output Arguments
More About
Tips
Excluding extensions, GPX version 1.1 is fully supported. If any other version is detected, a warning is issued. However, in most cases, version 1.0 GPX files can be read successfully unless they contain certain metadata tags. For more information, see the GPX 1.1 Schema Documentation.
Version History
Introduced in R2012a