Class OperatorDifference

java.lang.Object
com.esri.core.geometry.Operator
com.esri.core.geometry.OperatorDifference
All Implemented Interfaces:
CombineOperator
Direct Known Subclasses:
OperatorDifferenceLocal

public abstract class OperatorDifference extends Operator implements CombineOperator
Difference of geometries.
  • Constructor Details

    • OperatorDifference

      public OperatorDifference()
  • Method Details

    • getType

      public Operator.Type getType()
      Specified by:
      getType in class Operator
    • execute

      public abstract GeometryCursor execute(GeometryCursor inputGeometries, GeometryCursor subtractor, SpatialReference sr, ProgressTracker progressTracker)
      Performs the Topological Difference operation on the geometry set.
      Parameters:
      inputGeometries - is the set of Geometry instances to be subtracted by the subtractor
      subtractor - is the Geometry being subtracted.
      Returns:
      Returns the result of the subtraction. The operator subtracts subtractor from every geometry in inputGeometries.
    • execute

      public abstract Geometry execute(Geometry inputGeometry, Geometry subtractor, SpatialReference sr, ProgressTracker progressTracker)
      Performs the Topological Difference operation on the two geometries.
      Specified by:
      execute in interface CombineOperator
      Parameters:
      inputGeometry - is the Geometry instance on the left hand side of the subtraction.
      subtractor - is the Geometry on the right hand side being subtracted.
      sr - The spatial reference to get the tolerance value from. When sr is null, the tolerance is calculated from the input geometries.
      progressTracker - ProgressTracker instance that is used to cancel the lengthy operation. Can be null.
      Returns:
      Returns the result of subtraction.
    • local

      public static OperatorDifference local()