Class SpatialQueryExecuter
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.plugin.analysis.SpatialQueryExecuter
-
public class SpatialQueryExecuter extends 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
Constructors Constructor Description SpatialQueryExecuter(FeatureCollection maskFC, FeatureCollection sourceFC)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(TaskMonitor monitor, GeometryPredicate func, double[] params, FeatureCollection resultFC)Computes geomSrc.func(geomMask)booleangetCreateNewLayer()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.ExceptiongetException()FeatureCollectiongetResultFC()booleanisExceptionThrown()voidsetAllowDuplicates(boolean isAllowDuplicates)Sets whether duplicate features are allowed in the result set.voidsetComplementResult(boolean complementResult)Sets whether the result set should be complementedvoidsetCreateNewLayer(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.
-
-
-
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()
-
getException
public Exception getException()
-
getResultFC
public FeatureCollection getResultFC()
-
execute
public void execute(TaskMonitor monitor, GeometryPredicate func, double[] params, FeatureCollection resultFC)
Computes geomSrc.func(geomMask)- Parameters:
monitor- a TaskMonitorfunc- function containing the GeometryPredicateparams- double array containing parameters of the GeometryPredicateresultFC- the resulting FeatureCollection
-
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.
-
-