jwo.landserf.process
Class PointDensityThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.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

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PointDensityThread(GISFrame gisFrame, VectorMap vectorMap, RasterMap rasterMap, int windowSize)
          Transforms the points in the given vector into a raster density surface.
 
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 jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setMessage
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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