jwo.landserf.process
Class DemToTinThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.landserf.process.DemToTinThread
- All Implemented Interfaces:
- Runnable
- public class DemToTinThread
- extends LSThread
Converts a DEM to TIN representation. Uses the 'greedy
insertion' algorithm described by Garland & Heckbert,
1995.
- Version:
- 2.1, 3rd September, 2004.
- Author:
- Jo Wood
Constructor Summary |
DemToTinThread(GISFrame gisFrame,
int numVertices,
float tolRMSE,
float tolError,
boolean createErrorSurf)
Converts a DEM into TIN representation. |
Method Summary |
void |
doProcessing()
Convert the DEM into TIN representation. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
DemToTinThread
public DemToTinThread(GISFrame gisFrame,
int numVertices,
float tolRMSE,
float tolError,
boolean createErrorSurf)
- Converts a DEM into TIN representation. TIN detail can be determined by any
combination of numSamples, tolRMSE or tolError, where error is difference
between TIN and DEM height at any point.
- Parameters:
gisFrame
- containing DEM and TIN.numVertices
- Maximum number of vertices.tolRMSE
- Maximum Root Mean Squared Error tolerated.tolError
- Maximum error tolerated.createErrorSurf
- Generates an error surface if true.
doProcessing
public void doProcessing()
- Convert the DEM into TIN representation.
- Specified by:
doProcessing
in class LSThread
Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004