jwo.landserf.process
Class CombineThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.landserf.process.CombineThread
All Implemented Interfaces:
Runnable

public class CombineThread
extends LSThread

Combines two spatial objects to create a new spatial object.

Version:
2.1, 31st May, 2004.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CombineThread(GISFrame gisFrame, int spatialType, int combineType, int combineRule, boolean replaceNull)
          Combines the primary and secondary objects stored in the gisFrame.
 
Method Summary
 void doProcessing()
          Combines the spatial objects according to the supplied rules.
 
Methods inherited from class jwo.landserf.process.LSThread
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

CombineThread

public CombineThread(GISFrame gisFrame,
                     int spatialType,
                     int combineType,
                     int combineRule,
                     boolean replaceNull)
Combines the primary and secondary objects stored in the gisFrame.

Parameters:
gisFrame - Frame holding the spatial objects to combine.
spatialType - Type of spatial objects to combine.
combineType - Type of combination (INTERSECTION or UNION).
combineRule - Indicates the type of combination rule to apply. Depends on the spatial object type. For rasters, rule dertermines priority attribute for intersection regions (PRIMARY, SECONDARY or AVERAGE. For vector maps, rule determines if intersection should be of bounding rectangles or polygons in vector map.
replaceNull - Indicates whether null values will be replaced where possible (only applies to raster maps).
Method Detail

doProcessing

public void doProcessing()
Combines the spatial objects according to the supplied rules.

Specified by:
doProcessing in class LSThread


Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004