pavi  0.0
Map Path Viewer
GPX Class Reference

GPX parser UDT (class with working code in CTOR) More...

Collaboration diagram for GPX:

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...
 

Detailed Description

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.

Since
0.0

Definition at line 20 of file parser_gpx.bi.

Constructor & Destructor Documentation

◆ GPX()

GPX::GPX ( BYVAL_AS_TrackLoader_PTR  Parent)

CTOR parsing the context of a *.GPX file.

Parameters
ParentPointer 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.

Since
0.0

Definition at line 307 of file parser_gpx.bas.

Member Data Documentation

◆ Tim

DOUBLE GPX::Tim = NaN

time/date as fbc Date Serial

Definition at line 22 of file parser_gpx.bi.

◆ Lon

float GPX::Lon = NaN

longitude [radians]

Definition at line 24 of file parser_gpx.bi.

◆ Lat

float GPX::Lat = NaN

latitude [radians]

Definition at line 25 of file parser_gpx.bi.

◆ Ele

float GPX::Ele = NaN

elevation [m]

Definition at line 26 of file parser_gpx.bi.

◆ Spd

float GPX::Spd = NaN

speed over ground [km/h]

Definition at line 27 of file parser_gpx.bi.

◆ Ang

float GPX::Ang = NaN

direction angle [°] north

Definition at line 28 of file parser_gpx.bi.

◆ Dat

ANY_PTR GPX::Dat

end of data array in input buffer

Definition at line 30 of file parser_gpx.bi.

◆ Trk

LONG GPX::Trk

number of tracks

Definition at line 32 of file parser_gpx.bi.

◆ Seg

LONG GPX::Seg

number of track segments

Definition at line 33 of file parser_gpx.bi.

◆ Pnt

LONG GPX::Pnt

number of points

Definition at line 34 of file parser_gpx.bi.

◆ Ext

LONG GPX::Ext

number of extensions

Definition at line 35 of file parser_gpx.bi.

◆ TiX

LONG GPX::TiX

number missing <time> tags

Definition at line 36 of file parser_gpx.bi.

◆ LaX

LONG GPX::LaX

number missing lat= entries

Definition at line 37 of file parser_gpx.bi.

◆ LoX

LONG GPX::LoX

number missing lon= entries

Definition at line 38 of file parser_gpx.bi.

◆ ElX

LONG GPX::ElX

number missing <ele> tags

Definition at line 39 of file parser_gpx.bi.

◆ SpX

LONG GPX::SpX

number missing <g_spd> tags

Definition at line 40 of file parser_gpx.bi.

◆ AnX

LONG GPX::AnX

number missing <dir> tags

Definition at line 41 of file parser_gpx.bi.

◆ Cont

STRING GPX::Cont

string context from tags for internal transfer

Definition at line 43 of file parser_gpx.bi.


The documentation for this class was generated from the following files: