|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.log.out.GPSFile
gps.log.out.GPSKMLFile
public class GPSKMLFile
Class to write a KML file.
Field Summary | |
---|---|
static java.lang.String |
ABSOLUTE_HEIGHT
Values for GPSConversionParameters.KML_TRACK_ALTITUDE_STRING . |
static java.lang.String |
CLAMPED_HEIGHT
|
static java.lang.String |
RELATIVE_HEIGHT
|
Fields inherited from class gps.log.out.GPSFile |
---|
FILE_SPLIT_NONE, FILE_SPLIT_ONE_FILE_PER_DAY, FILE_SPLIT_ONE_FILE_PER_TRACK |
Constructor Summary | |
---|---|
GPSKMLFile()
|
Method Summary | |
---|---|
void |
finaliseFile()
Method called when all parsing is finished and the last file has to be closed. |
void |
initialiseFile(BT747Path basename,
java.lang.String ext,
int oneFilePerDay)
This function has to be called at some time to initialize the file conversion. |
boolean |
nextPass()
Called when the input file has been parsed. |
void |
setTrackName(java.lang.String extra_ext)
Added to be able to set the track name in case the createFile method is overridden. |
void |
writeFileHeader(java.lang.String name)
This method is to be extended as needed and is called when the file header must be written. |
void |
writeRecord(GPSRecord r)
Called for any new position. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ABSOLUTE_HEIGHT
GPSConversionParameters.KML_TRACK_ALTITUDE_STRING
.
public static final java.lang.String RELATIVE_HEIGHT
public static final java.lang.String CLAMPED_HEIGHT
Constructor Detail |
---|
public GPSKMLFile()
Method Detail |
---|
public void initialiseFile(BT747Path basename, java.lang.String ext, int oneFilePerDay)
GPSFile
initialiseFile
in interface GPSFileConfInterface
initialiseFile
in class GPSFile
basename
- Base name of the output file. This value will be provided to
the filename builder.ext
- Extension of the output file. This value will be provided to
the filename builder.oneFilePerDay
- Indicates how the file must be separated.AppSettings.SPLIT_ONE_FILE
,
AppSettings.SPLIT_ONE_FILE_PER_DAY
,
AppSettings.SPLIT_ONE_FILE_PER_TRACK
public final boolean nextPass()
GPSFile
nextPass
in interface GPSFileConverterInterface
nextPass
in class GPSFile
public final void writeFileHeader(java.lang.String name)
GPSFile
name
- Identifier for the output file that can be used in the
header.public final void writeRecord(GPSRecord r)
GPSFile
GPSFile.t
property set.
writeRecord
in class GPSFile
r
- information regarding the position.public void setTrackName(java.lang.String extra_ext)
extra_ext
- public void finaliseFile()
GPSFile
finaliseFile
in interface GPSFileConverterInterface
finaliseFile
in class GPSFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |