|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object courselog.gpsutils.ExporterToGPX
public class ExporterToGPX
Object to export a track into a GPX format. The object is associated to the TrackRecord or Vector of TrackRecords object to write.
Field Summary | |
---|---|
protected TrackRecord |
myTr
Track record to convert to KML. |
protected ewe.util.Vector |
myVect
Vector of records to convert to KML tracks. |
static byte[] |
sXCData
close CDATA |
static byte[] |
sXCEle
close Elevation |
static byte[] |
sXCGPXHead
End of GPX |
static byte[] |
sXCName
close Name |
static byte[] |
sXCNum
close Number |
static byte[] |
sXCPoint
close Point |
static byte[] |
sXCSegment
close Segment |
static byte[] |
sXCSym
close Symbol |
static byte[] |
sXCTime
close Time |
static byte[] |
sXCTrack
close Track |
static byte[] |
sXI2Point
Intermediate 2 of Track Point |
static byte[] |
sXIPoint
Intermediate of Track Point |
static byte[] |
sXSCData
Header of CDATA |
static byte[] |
sXSEle
Header of Elevation |
static byte[] |
sXSGPXHead
Header of GPX |
static byte[] |
sXSHead
Header of XML |
static byte[] |
sXSName
Header of Name |
static byte[] |
sXSNum
Header of Number |
static byte[] |
sXSPoint
Header of Track Point |
static byte[] |
sXSSegment
Header of Segment |
static byte[] |
sXSSym
Header of Symbol |
static byte[] |
sXSTime
Header of Time |
static byte[] |
sXSTrack
Header of Track |
Constructor Summary | |
---|---|
ExporterToGPX(TrackRecord track)
Creates a new instance of ExporterToGPX. |
|
ExporterToGPX(ewe.util.Vector vect)
Creates a new instance of ExporterToGPX. |
Method Summary | |
---|---|
void |
exportToFile(ewe.io.File fOut,
int dataFlag)
Export track(s) to a file. |
int |
formatAltitude(byte[] buf,
double val)
Format the altitude value in the buffer. |
int |
formatDate(byte[] buf,
ewe.sys.Time tm)
Format a date and time into the buffer buf. |
int |
formatIdxTrack(byte[] buf,
int idx)
Format an index into the buffer. used for point or track index. |
int |
formatLatOrLon(byte[] buf,
double val)
Format latitude or longitude value. |
int |
formatSpeed(byte[] buf,
double val)
Format the speed value in the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] sXSHead
public static final byte[] sXSGPXHead
public static final byte[] sXCGPXHead
public static final byte[] sXSTrack
public static final byte[] sXCTrack
public static final byte[] sXSName
public static final byte[] sXCName
public static final byte[] sXSCData
public static final byte[] sXCData
public static final byte[] sXSNum
public static final byte[] sXCNum
public static final byte[] sXSSegment
public static final byte[] sXCSegment
public static final byte[] sXSPoint
public static final byte[] sXIPoint
public static final byte[] sXI2Point
public static final byte[] sXCPoint
public static final byte[] sXSEle
public static final byte[] sXCEle
public static final byte[] sXSTime
public static final byte[] sXCTime
public static final byte[] sXSSym
public static final byte[] sXCSym
protected TrackRecord myTr
protected ewe.util.Vector myVect
Constructor Detail |
---|
public ExporterToGPX(TrackRecord track)
track
- Track to convert.public ExporterToGPX(ewe.util.Vector vect)
vect
- Tracks to convert.Method Detail |
---|
public void exportToFile(ewe.io.File fOut, int dataFlag)
Values are exported in international units : time = UTC alt = m
fOut
- File to write to.dataFlag
- Identification of data to associate.public int formatAltitude(byte[] buf, double val)
buf
- Buffer where to write the formatted value, with 7 elements as a minimum.val
- Altitude value to put in the formatted buffer.
public int formatDate(byte[] buf, ewe.sys.Time tm)
yyyy-mm-ddThh:mi:ssZ
buf
- Buffer where to write the formatted value, with 21 elements as a minimum.tm
- Time value to put in the formatted buffer.
public int formatSpeed(byte[] buf, double val)
buf
- Buffer where to write the formatted value, with 6 elements as a minimum.val
- Speed value to put in the formatted buffer.
public int formatLatOrLon(byte[] buf, double val)
buf
- Buffer where to write the formatted value, with 11 elements as a minimum.val
- Lat(Long)itude value to put in the formatted buffer.
public int formatIdxTrack(byte[] buf, int idx)
buf
- Buffer where to write the formatted value, with 5 elements as a minimum.idx
- index value to put in the formatted buffer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |