jwo.landserf.process
Class CombineThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.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
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 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 |
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).
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