|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.c5corp.c5gps.filters.CsvWayPointListFilter
public class CsvWayPointListFilter
The CsvWayPointListFilter functions both as an input and output filter to read and write standard GPS waypoint .csv files. Importantly, this filter really does filter any data input from a track log file. It is a little bit fascist, in fact, forcibly:
The data is massaged in this maner because this class is intended to support i/o for a C5 Landscape Database (C5UTM) installation, thus units and datum are validated. For example, all altitude data from the file will automatically converted to the vertial elevation units configured in the database application. (See com.c5corp.c5utm.C5UTMconfs for more info). The readFile() method of this class will abort on datum mismatches. The writeFile() method of this class will refuse to output any WayPoints that do not conform.
C5UTMconfs,
writeFile(GpsDataFileType),
readFile()| Constructor Summary | |
|---|---|
CsvWayPointListFilter(java.io.File file)
Constructor creates a CsvWayPointLogFilter . |
|
| Method Summary | |
|---|---|
WayPointList |
readFile()
Reads in a GPS track log file in standard .csv format |
void |
setFile(java.io.File file)
Sets the file for this filter to filter |
java.lang.String |
toString(GpsDataFileType dataOb)
implements toString(GpsDataFileType dataOb), returning a String representation of the data object filtered by this type. |
void |
writeFile(GpsDataFileType dataOb)
The use of this method is fairly straight forward. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CsvWayPointListFilter(java.io.File file)
file - a File object representing the .csv wapoint file| Method Detail |
|---|
public void setFile(java.io.File file)
setFile in interface GpsDataFilterfile - the output file to which data should be sentGpsDataFilter.writeFile(GpsDataFileType)public WayPointList readFile()
readFile in interface GpsDataFilterpublic void writeFile(GpsDataFileType dataOb)
writeFile in interface GpsDataFilterdataOb - the object containing the data to write to the fileGpsDataFilter.setFile(File)public java.lang.String toString(GpsDataFileType dataOb)
toString in interface GpsDataFilterdataOb - the dataOb to Stringify
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||