jwo.landserf.process
Class PointDensityThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.landserf.process.PointDensityThread
- All Implemented Interfaces:
- Runnable
- public class PointDensityThread
- extends LSThread
Calculates the point density of a given vector coverage. Requires
an input vector and raster. The raster provided determines the
resolution of the density surface. The windowSize parameter
determines the local area used to calculate density. Only point
objects from the input vector map are processed.
- Version:
- 2.1, 3rd September, 2004.
- Author:
- Jo Wood
Method Summary |
void |
doProcessing()
Converts the vector into a raster. |
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 |
PointDensityThread
public PointDensityThread(GISFrame gisFrame,
VectorMap vectorMap,
RasterMap rasterMap,
int windowSize)
- Transforms the points in the given vector into a raster density surface.
- Parameters:
gisFrame
- GUI in which to report results.vectorMap
- Vector containing points.rasterMap
- Raster to hold density surface. This raster defines
bounds and resolution of output.windowSize
- Size of local window to use in density calculation.
Should be odd and at least 1.
doProcessing
public void doProcessing()
- Converts the vector into a raster.
- Specified by:
doProcessing
in class LSThread
Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004