|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread jwo.landserf.process.LSThread jwo.landserf.process.CombineThread
public class CombineThread
Combines two spatial objects to create a new spatial object.
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 | |
---|---|
CombineThread(GISFrame gisFrame)
Creates an object ready for combining files but does not perform the combination. |
|
CombineThread(GISFrame gisFrame,
int spatialType,
int combineType,
int combineRule,
boolean replaceNull)
Combines the two spatial objects stored in the gisFrame. |
Method Summary | |
---|---|
boolean |
doCommand(LSCommand command)
Combines the spatial objects specified in the given scripting parameters. |
void |
doProcessing()
Combines two spatial objects according to the supplied rules. |
SpatialObject |
getCombinedMap()
Retrieves the combined spatial object (either a RasterMap or VectorMap depending on what spatial types were provided to the constructor). |
LSCommand |
getCommand()
Reports the syntax required to allow files to be combined via a scripting command. |
GISFrame |
getGISFrame()
Retrieves the GISFrame that can be used for storing multiple spatial objects and messages. |
Object |
getReturnedObject()
Returns the newly created combined spatial object. |
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 |
---|
public CombineThread(GISFrame gisFrame)
gisFrame
- Frame holding spatial objects and in which to report results.public CombineThread(GISFrame gisFrame, int spatialType, int combineType, int combineRule, boolean replaceNull)
gisFrame
- Frame holding the spatial objects to combine.spatialType
- Type of spatial objects combination (should be one of CombineBox.RASTERS
,
CombineBox.VECTORS
or CombineBox.RASTER_VECTOR
.combineType
- Type of combination (INTERSECTION or UNION).combineRule
- Indicates the type of combination rule to apply. Depends
on the spatial object type. For two rasters, rule determines priority
attribute for intersection regions (PRIMARY, SECONDARY or AVERAGE.
For vector maps and raster-vector combination, rule determines if intersection should be
of bounding rectangles or objects in vector map.replaceNull
- Indicates whether null values will be replaced where
possible (only applies to raster maps).Method Detail |
---|
public void doProcessing()
GISFrame
provided to the
constructor, but will not be selected as either a primary or secondary raster/vector map.
To retrieve it either call getCombinedMap()
from this class or call
gisFrame.getRasterMaps();
/ gisFrame.getVectorMaps();
and
retrieve the last object added to the collection.
doProcessing
in class LSThread
GISFrame
public LSCommand getCommand()
getCommand
in interface Scriptable
public boolean doCommand(LSCommand command)
doCommand
in interface Scriptable
command
- Command containing parameter values.
public Object getReturnedObject()
getReturnedObject
in interface Scriptable
public GISFrame getGISFrame()
getGISFrame
in interface Scriptable
public SpatialObject getCombinedMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |