|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcourselog.gpsutils.TrackRecord
public class TrackRecord
A GPS track. Mainly used to write tracking records into a file, read back those log files into a vector and write them into GPX format. TODO : Read a GPX file?
| Field Summary | |
|---|---|
static int |
OPTION_ENDTRACK
Option to read file keeping only the end of the track. |
static int |
OPTION_SEPARATETRACK
Option to read file in a separate track. |
static int |
OPTION_SINGLETRACK
Option to read file in a single track. |
ewe.util.Vector |
vPoints
GPS points serie. |
| Constructor Summary | |
|---|---|
TrackRecord()
Creates a new instance of TrackRecord empty track. |
|
| Method Summary | |
|---|---|
static boolean |
isValidTrackLog(java.lang.String s)
Check if a string can be interpreted as a TrackPoint log line. |
void |
makeOneTrack()
Convert a set of Track points into a single track. |
ewe.util.Vector |
makeSplitTracks()
Convert a TrackRecord consisting in non-consecutive points into set of tracks. |
static TrackRecord |
readLogFile(ewe.io.File fLog,
TrackRecord tr,
int cutOption)
Read a log file into a new TrackRecord object. |
void |
reCompute()
Recompute tracks points in terms of UTM coordinates from Lat, Lon values. |
void |
reverse()
Invert the direction of this TrackRecord. |
boolean |
writeLogFile(ewe.io.File fLog)
Writes a TrackRecord object into a log file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OPTION_SINGLETRACK
public static final int OPTION_SEPARATETRACK
public static final int OPTION_ENDTRACK
public ewe.util.Vector vPoints
| Constructor Detail |
|---|
public TrackRecord()
| Method Detail |
|---|
public void makeOneTrack()
public void reCompute()
public void reverse()
public ewe.util.Vector makeSplitTracks()
public static TrackRecord readLogFile(ewe.io.File fLog,
TrackRecord tr,
int cutOption)
fLog - Log file to read.tr - TrackRecord to fill in (previous points are erased) or null if
a new object is to be allocated.cutOption - flag specifying to make the track a single one,
to leave split tracks or to keep only the end.
TrackPoint.readFromLogLine(String)public static boolean isValidTrackLog(java.lang.String s)
public boolean writeLogFile(ewe.io.File fLog)
fLog - Log file to write.
TrackPoint.formatInBuffer(byte[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||