|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.io.FileIO jwo.landserf.process.io.XmlIO
public class XmlIO
Contains a collection of static methods for reading and writing various XML format files.
Field Summary |
---|
Fields inherited from class jwo.landserf.process.io.FileIO |
---|
BIG_ENDIAN, bitsPerValue, byteOrder, DEBUG, errorMessage, filePointer, GATHER_INFO, lineNumber, LITTLE_ENDIAN, LOAD_ALL, LOAD_SELECTED, nullCode, substituteNull, useMultiplier, zMultiplier |
Constructor Summary | |
---|---|
XmlIO()
There should be no need to call the constructor explicitly since all methods are static. |
Method Summary | |
---|---|
static VectorMap |
readGPX(String fileName,
GISFrame gisFrame,
LSThread lsThread)
Reads a GPX (GPS interchange format) file and stores the contents as a vector map. |
static VectorMap |
readKML(String fileName,
GISFrame gisFrame,
LSThread lsThread)
Reads a KML (Keyhole/Google Earth) vector file and stores the contents as a vector map. |
static VectorMap |
readMasterMapVector(String fileName,
GISFrame gisFrame,
LSThread lsThread)
Attempts to read an Ordnance Survey MasterMap XML file (vector format). |
static boolean |
writeGPX(VectorMap vectorMap,
String fileName,
GISFrame gisFrame,
LSThread lsThread)
Writes a GPX (GPS interchange format) file from the given vector map. |
static boolean |
writeKML(VectorMap vectorMap,
String fileName,
GISFrame gisFrame,
LSThread lsThread)
Writes a KML vector file from the given vector map. |
static boolean |
writeKMZ(String fileName,
GISFrame gisFrame,
LSThread lsThread)
Writes the currently displayed image in gisFrame as a KMZ archive containing a hierarchy of sampled images. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlIO()
Method Detail |
---|
public static VectorMap readMasterMapVector(String fileName, GISFrame gisFrame, LSThread lsThread)
fileName
- Name of file to read.gisFrame
- Frame in which to report results.lsThread
- Thread which called this method (allows it to be interrupted).
Can be null if no external interruption allowed.
public static boolean writeGPX(VectorMap vectorMap, String fileName, GISFrame gisFrame, LSThread lsThread)
GPSObject
field. Note that if there is no attribute
table, or if there is no table with a GPSObject
field, all point data
will be assumed to be waypoints and all line data assumed to be tracks. To write out
a route, the vector map must include an attribute table with a GPSObject
field and route points identified with the attribute routepoint
. To write out
only selected lines as tracks, make sure the vector map includes an attribute table with a
GPSObject
field and the selected linear objects have a track
attribute
in that field.
See www.topografix.com/gpx_manual.asp
and www.topografix.com/gpx.asp.
vectorMap
- VectorMap to be written out as GPX file.fileName
- Name of file to create.gisFrame
- GUI in which to report results.lsThread
- Thread that called this method (allowing it to be interrupted).
Can be null, in which case this method cannot be interrupted.
FileHandler
public static VectorMap readGPX(String fileName, GISFrame gisFrame, LSThread lsThread)
fileName
- Name of file to read.gisFrame
- Frame in which to report results.lsThread
- Thread which called this method (allows it to be interrupted).
Can be null if no external interruption allowed.
public static boolean writeKML(VectorMap vectorMap, String fileName, GISFrame gisFrame, LSThread lsThread)
vectorMap
- VectorMap to be written out as a KML file.fileName
- Name of file to create.gisFrame
- GUI in which to report results.lsThread
- Thread that called this method (allowing it to be interrupted).
Can be null, in which case this method cannot be interrupted.
FileHandler
public static VectorMap readKML(String fileName, GISFrame gisFrame, LSThread lsThread)
fileName
- Name of file to read.gisFrame
- Frame in which to report results.lsThread
- Thread which called this method (allows it to be interrupted).
Can be null if no external interruption allowed.
public static boolean writeKMZ(String fileName, GISFrame gisFrame, LSThread lsThread)
fileName
- Name of file to create.gisFrame
- GUI from which display is to be stored.lsThread
- Thread that called this method (allowing it to be interrupted).
Can be null, in which case this method cannot be interrupted.
FileHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |