|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread jwo.landserf.process.LSThread jwo.landserf.process.DemToTinThread
public class DemToTinThread
Converts a DEM to TIN representation. Uses the 'greedy insertion' algorithm described by Garland & Heckbert (1995).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DemToTinThread(GISFrame gisFrame)
Creates an object ready for triangulation but does not perform the transformation. |
|
DemToTinThread(GISFrame gisFrame,
int numVertices,
float tolRMSE,
float tolError,
boolean createErrorSurf)
Converts a DEM into TIN representation. |
Method Summary | |
---|---|
boolean |
doCommand(LSCommand command)
Creates a vector map containing the triangulated points. |
void |
doProcessing()
Convert the DEM stored as the primary raster in the GISFrame
provided to the constructor into TIN representation. |
LSCommand |
getCommand()
Reports the syntax required to allow contours to be created via a scripting command. |
RasterMap |
getErrorMap()
Retrieves the newly created raster map containing the TIN error map (if chosen). |
GISFrame |
getGISFrame()
Retrieves the GISFrame that can be used for storing multiple spatial objects. |
Object |
getReturnedObject()
Returns a vector map holding the triangulation. |
VectorMap |
getTIN()
Retrieves the newly created vector map containing the TIN. |
Methods inherited from class jwo.landserf.process.LSThread |
---|
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setFinalMessage, setMessage |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DemToTinThread(GISFrame gisFrame)
gisFrame
- Frame in which to report results.public DemToTinThread(GISFrame gisFrame, int numVertices, float tolRMSE, float tolError, boolean createErrorSurf)
gisFrame
- containing DEM and TIN.numVertices
- Maximum number of vertices. If -1, this criterion will be ignored.tolRMSE
- Maximum Root Mean Squared Error tolerated. If -1, this criterion will be ignored.tolError
- Maximum error tolerated. If -1, this criterion will be ignored.createErrorSurf
- Generates an error surface if true.Method Detail |
---|
public LSCommand getCommand()
getCommand
in interface Scriptable
public boolean doCommand(LSCommand command)
doCommand
in interface Scriptable
command
- Command containing parameter values.
public Object getReturnedObject()
getReturnedObject
in interface Scriptable
public GISFrame getGISFrame()
getGISFrame
in interface Scriptable
public void doProcessing()
GISFrame
provided to the constructor into TIN representation. The newly created vector map
containing the TIN is added to the GISFrame
provided to
the constructor as a primary vector. This can be retrieved directly via
this class's method getTIN(), or by calling gisFrame.getVector1();
.
If error map output has been chosen, the newly created raster map
containing the error surface is added to the GISFrame
provided to
the constructor as a secondary raster. This can be retrieved directly via
this class's method getErrorMap(), or by calling gisFrame.getRaster2();
.
doProcessing
in class LSThread
GISFrame
public RasterMap getErrorMap()
public VectorMap getTIN()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |