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 Details

  • 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

      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 TaskMonitor
      func - function containing the GeometryPredicate
      params - double array containing parameters of the GeometryPredicate
      resultFC - 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.