|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object courselog.gpsutils.ExporterToKML
public class ExporterToKML
Object to export a track into a KML format. The object is associated to the TrackRecord or Vector of TrackRecords object to write. The exporter also colors the output track according to a flag value which can address altitude, time or speed.
Field Summary | |
---|---|
static byte[][] |
clMapBlue
color Map, values for Blue |
static byte[][] |
clMapGreen
color Map, values for Green |
static byte[][] |
clMapRed
color Map, values for red |
static byte[] |
clTransparent
color Map, value for transparency |
static int |
DF_ALTITUDE
Identifier of altitude data flag (==1) |
static int |
DF_SPEED
Identifier of speed data flag (==3) |
static int |
DF_TIME
Identifier of time data flag (==2) |
protected double |
myMaxVal
Maximum value for mapped value |
protected double |
myMinVal
Minimum value for mapped value |
protected TrackRecord |
myTr
Track record to convert to KML. |
protected ewe.util.Vector |
myVect
Vector of records to convert to KML tracks. |
static byte[] |
sXCBold
close Bold |
static byte[] |
sXCDoc
close Document |
static byte[] |
sXCFolder
close Folder |
static byte[] |
sXCKMLHead
End of KML |
static byte[] |
sXCLine
close LineString |
static byte[] |
sXCName
close Name |
static byte[] |
sXCPlace
close Placemark |
static byte[] |
sXCPoint
close Point |
static byte[] |
sXCStyle
close Style |
static byte[] |
sXIPoint
Intermediate of Point |
static byte[] |
sXSBold
Header of Bold |
static byte[] |
sXSDoc
Header of Document |
static byte[] |
sXSFolder
Header of Folder |
static byte[] |
sXSHead
Header of XML |
static byte[] |
sXSKMLHead
Header of KML |
static byte[] |
sXSLine
Header of LineString |
static byte[] |
sXSName
Header of Name |
static byte[] |
sXSPlace
Header of Placemark |
static byte[] |
sXSPoint
Header of Point |
static byte[] |
sXSStyle
Header of Style |
static byte[] |
sXTOpen
Tag for open |
static byte[] |
sXTVisibility
Tag for visibility |
Constructor Summary | |
---|---|
ExporterToKML(TrackRecord track)
Creates a new instance of ExporterToKML. |
|
ExporterToKML(ewe.util.Vector vect)
Creates a new instance of ExporterToKML. |
Method Summary | |
---|---|
int |
colorIndexOf(double val)
|
void |
exportToFile(ewe.io.File fOut,
int dataFlag)
Export track(s) to a file. |
int |
formatAltitude(byte[] buf,
double val)
|
int |
formatDuration(byte[] buf,
double val)
|
int |
formatIdxPoint(byte[] buf,
int idx)
|
int |
formatLatOrLon(byte[] buf,
double val)
|
int |
formatSpeed(byte[] buf,
double val)
|
void |
scanMinMaxLegendValues(int dataFlag)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DF_ALTITUDE
public static final int DF_TIME
public static final int DF_SPEED
public static final byte[] sXSHead
public static final byte[] sXSKMLHead
public static final byte[] sXCKMLHead
public static final byte[] sXSDoc
public static final byte[] sXCDoc
public static final byte[] sXTVisibility
public static final byte[] sXTOpen
public static final byte[] sXSFolder
public static final byte[] sXCFolder
public static final byte[] sXSPlace
public static final byte[] sXCPlace
public static final byte[] sXSName
public static final byte[] sXCName
public static final byte[] sXSBold
public static final byte[] sXCBold
public static final byte[] sXSPoint
public static final byte[] sXIPoint
public static final byte[] sXCPoint
public static final byte[] sXSLine
public static final byte[] sXCLine
public static final byte[] sXSStyle
public static final byte[] sXCStyle
public static final byte[][] clMapRed
public static final byte[][] clMapGreen
public static final byte[][] clMapBlue
public static final byte[] clTransparent
protected TrackRecord myTr
protected ewe.util.Vector myVect
protected double myMinVal
protected double myMaxVal
Constructor Detail |
---|
public ExporterToKML(TrackRecord track)
track
- Track to convert.public ExporterToKML(ewe.util.Vector vect)
vect
- Tracks to convert.Method Detail |
---|
public void exportToFile(ewe.io.File fOut, int dataFlag)
fOut
- File to write to.dataFlag
- Identification of data to associate.public void scanMinMaxLegendValues(int dataFlag)
public int colorIndexOf(double val)
public int formatAltitude(byte[] buf, double val)
public int formatDuration(byte[] buf, double val)
public int formatSpeed(byte[] buf, double val)
public int formatLatOrLon(byte[] buf, double val)
public int formatIdxPoint(byte[] buf, int idx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |