Class SpatialQueryExecuter
java.lang.Object
com.vividsolutions.jump.workbench.ui.plugin.analysis.SpatialQueryExecuter
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(TaskMonitor monitor, GeometryPredicate func, double[] params, FeatureCollection resultFC) Computes geomSrc.func(geomMask)booleanReturns 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.booleanvoidsetAllowDuplicates(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 Details
-
SpatialQueryExecuter
-
-
Method Details
-
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
-
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.
-