com.vividsolutions.jump.workbench.ui.plugin.analysis
Class SpatialQueryExecuter

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.plugin.analysis.SpatialQueryExecuter

public class SpatialQueryExecuter
extends java.lang.Object

Exceutes a spatial query with a given mask FeatureCollection, source FeatureCollection, and predicate. Ensures result does not contain duplicates.

Version:
1.0
Author:
Martin Davis

Constructor Summary
SpatialQueryExecuter(FeatureCollection maskFC, FeatureCollection sourceFC)
           
 
Method Summary
 void execute(TaskMonitor monitor, GeometryPredicate func, double[] params, FeatureCollection resultFC)
          Computes geomSrc.func(geomMask)
 boolean getCreateNewLayer()
          Returns a boolean flag that indicates if features selected as part of the spatial analysis should be placed on a new layer, or should be selected in the source layer.
 FeatureCollection getResultFC()
           
 boolean isExceptionThrown()
           
 void setAllowDuplicates(boolean isAllowDuplicates)
          Sets whether duplicate features are allowed in the result set.
 void setComplementResult(boolean complementResult)
          Sets whether the result set should be complemented
 void setCreateNewLayer(boolean argCreateNewLayer)
          Sets a boolean flag that indicates if features selected as part of the spatial analysis should be placed on a new layer, or should be selected in the source layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialQueryExecuter

public SpatialQueryExecuter(FeatureCollection maskFC,
                            FeatureCollection sourceFC)
Method Detail

setAllowDuplicates

public void setAllowDuplicates(boolean isAllowDuplicates)
Sets whether duplicate features are allowed in the result set.

Parameters:
isAllowDuplicates - true if duplicates are allowed

setComplementResult

public void setComplementResult(boolean complementResult)
Sets whether the result set should be complemented

Parameters:
complementResult - true if the result should be complemented

isExceptionThrown

public boolean isExceptionThrown()

getResultFC

public FeatureCollection getResultFC()

execute

public void execute(TaskMonitor monitor,
                    GeometryPredicate func,
                    double[] params,
                    FeatureCollection resultFC)
Computes geomSrc.func(geomMask)

Parameters:
monitor -
func -
params -
resultFC -

setCreateNewLayer

public void setCreateNewLayer(boolean argCreateNewLayer)
Sets a boolean flag that indicates if features selected as part of the spatial analysis should be placed on a new layer, or should be selected in the source layer.


getCreateNewLayer

public boolean getCreateNewLayer()
Returns a boolean flag that indicates if features selected as part of the spatial analysis should be placed on a new layer, or should be selected in the source layer.