jwo.landserf.process
Class CombinePointsWithRasterThread

java.lang.Object
  extended by java.lang.Thread
      extended by jwo.landserf.process.LSThread
          extended by jwo.landserf.process.CombinePointsWithRasterThread
All Implemented Interfaces:
Runnable, JWInterruptionListener

public class CombinePointsWithRasterThread
extends LSThread

Adds the attributes of the primary raster to those of the points in the primary vector.

Version:
2.3, 17th July, 2006.
Author:
Jo Wood

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
CombinePointsWithRasterThread(GISFrame gisFrame)
          Adds the raster attributes at the point values stored in the primary vector map stored in the gisFrame.
 
Method Summary
 void doProcessing()
          Adds the attributes of each raster cell that coincides with a vector point to the primary vector map.
 SpatialObject getVectorMap()
          Retrieves the Vector map containing the newly amended points containing raster values.
 
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

CombinePointsWithRasterThread

public CombinePointsWithRasterThread(GISFrame gisFrame)
Adds the raster attributes at the point values stored in the primary vector map stored in the gisFrame.

Parameters:
gisFrame - Frame holding the spatial objects to combine.
Method Detail

doProcessing

public void doProcessing()
Adds the attributes of each raster cell that coincides with a vector point to the primary vector map. To retrieve the amended vector map either call getVectorMap() from this class or call gisFrame.getVectorMap1(); after this method has completed.

Note that this method will be called automatically if this is run as a threaded process (e.g. myCombinePointsWithRasterThread.start()). Alternatively it can be called directly as a non-threaded process.

Specified by:
doProcessing in class LSThread
See Also:
GISFrame

getVectorMap

public SpatialObject getVectorMap()
Retrieves the Vector map containing the newly amended points containing raster values.

Returns:
Vector map with additional raster attributes.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009