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)
 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
 
Methods inherited from class java.lang.Object
equals, 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:
isRemoveDuplicates - 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 -