|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.c5corp.c5gps.filters.CsvRouteListFilter
public class CsvRouteListFilter
The CsvRouteListFilter 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 RoutePoints that do not conform.
C5UTMconfs,
writeFile(GpsDataFileType),
readFile()| Constructor Summary | |
|---|---|
CsvRouteListFilter(java.io.File file)
Constructor creates a CsvRoutePointLogFilter . |
|
| Method Summary | |
|---|---|
RouteList |
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 CsvRouteListFilter(java.io.File file)
file - the File object representing the Route .csv| 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 RouteList readFile()
readFile in interface GpsDataFilterpublic void writeFile(GpsDataFileType dataOb)
writeFile in interface GpsDataFilterdataOb - the GpsDataFileType ob to writeGpsDataFilter.setFile(File)public java.lang.String toString(GpsDataFileType dataOb)
toString in interface GpsDataFilterdataOb - the GpsDataFileType ob to stringify
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||