jwo.landserf.process
Class PointDensityThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.landserf.process.PointDensityThread
- All Implemented Interfaces:
- JWInterruptionListener, 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.2, 26th February, 2005.
- Author:
- Jo Wood
Method Summary |
void |
doProcessing()
Converts the vector points stored in the vector map provided to the
constructor into a raster of point density values. |
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 points stored in the vector map provided to the
constructor into a raster of point density values. The density
surface is placed inside the raster map provided to the constructor.
Note that this method will be called automatically if this is run as a threaded
process (e.g. myPointDensityThread.start()). Alternatively it can be called directly
as a non-threaded process.
- Specified by:
doProcessing
in class LSThread
- See Also:
GISFrame
Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005