GPX parser UDT (class with working code in CTOR) More...
Public Member Functions | |
GPX (BYVAL_AS_TrackLoader_PTR) | |
CTOR parsing the context of a *.GPX file. More... | |
Public Attributes | |
DOUBLE | Tim = NaN |
time/date as fbc Date Serial More... | |
float | Lon = NaN |
longitude [radians] More... | |
float | Lat = NaN |
latitude [radians] More... | |
float | Ele = NaN |
elevation [m] More... | |
float | Spd = NaN |
speed over ground [km/h] More... | |
float | Ang = NaN |
direction angle [°] north More... | |
ANY_PTR | Dat |
end of data array in input buffer More... | |
LONG | Trk |
number of tracks More... | |
LONG | Seg |
number of track segments More... | |
LONG | Pnt |
number of points More... | |
LONG | Ext |
number of extensions More... | |
LONG | TiX |
number missing <time> tags More... | |
LONG | LaX |
number missing lat= entries More... | |
LONG | LoX |
number missing lon= entries More... | |
LONG | ElX |
number missing <ele> tags More... | |
LONG | SpX |
number missing <g_spd> tags More... | |
LONG | AnX |
number missing <dir> tags More... | |
STRING | Cont |
string context from tags for internal transfer More... | |
GPX parser UDT (class with working code in CTOR)
This UDTs constructor gets the context of a *.GPX
file and evaluates it, reading the date, time, longitude, latitude, elevation, ground speed and the moving direction data from the XML
tags. The code is tested for files generated by MapFactor Navigator software, but should work for any *.GPX
file.
Definition at line 20 of file parser_gpx.bi.
GPX::GPX | ( | BYVAL_AS_TrackLoader_PTR | Parent | ) |
CTOR parsing the context of a *.GPX
file.
Parent | Pointer to parent instance |
This constructor gets an input buffer (UBYTE PTR) containing the context of an *.GPX
file, and parses it, creating an array of TrP points. That array is located at (and overriding) the beginning of the input buffer, and finally the buffer gets reduced (REALLOCATE) in size to the binary data.
Definition at line 307 of file parser_gpx.bas.
DOUBLE GPX::Tim = NaN |
time/date as fbc Date Serial
Definition at line 22 of file parser_gpx.bi.
longitude [radians]
Definition at line 24 of file parser_gpx.bi.
latitude [radians]
Definition at line 25 of file parser_gpx.bi.
elevation [m]
Definition at line 26 of file parser_gpx.bi.
speed over ground [km/h]
Definition at line 27 of file parser_gpx.bi.
direction angle [°] north
Definition at line 28 of file parser_gpx.bi.
ANY_PTR GPX::Dat |
end of data array in input buffer
Definition at line 30 of file parser_gpx.bi.
LONG GPX::Trk |
number of tracks
Definition at line 32 of file parser_gpx.bi.
LONG GPX::Seg |
number of track segments
Definition at line 33 of file parser_gpx.bi.
LONG GPX::Pnt |
number of points
Definition at line 34 of file parser_gpx.bi.
LONG GPX::Ext |
number of extensions
Definition at line 35 of file parser_gpx.bi.
LONG GPX::TiX |
number missing <time>
tags
Definition at line 36 of file parser_gpx.bi.
LONG GPX::LaX |
number missing lat= entries
Definition at line 37 of file parser_gpx.bi.
LONG GPX::LoX |
number missing lon= entries
Definition at line 38 of file parser_gpx.bi.
LONG GPX::ElX |
number missing <ele>
tags
Definition at line 39 of file parser_gpx.bi.
LONG GPX::SpX |
number missing <g_spd>
tags
Definition at line 40 of file parser_gpx.bi.
LONG GPX::AnX |
number missing <dir>
tags
Definition at line 41 of file parser_gpx.bi.
STRING GPX::Cont |
string context from tags for internal transfer
Definition at line 43 of file parser_gpx.bi.