Class OperatorSymmetricDifference

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

public abstract class OperatorSymmetricDifference extends Operator implements CombineOperator
Symmetric difference (XOR) operation between geometries.
  • Constructor Details

    • OperatorSymmetricDifference

      public OperatorSymmetricDifference()
  • Method Details

    • getType

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

      public abstract GeometryCursor execute(GeometryCursor inputGeometries, GeometryCursor rightGeometry, SpatialReference sr, ProgressTracker progressTracker)
      Performs the Symmetric Difference operation on the geometry set.
      Parameters:
      inputGeometries - is the set of Geometry instances to be XOR'd by rightGeometry.
      rightGeometry - is the Geometry being XOR'd with the inputGeometies.
      Returns:
      Returns the result of the symmetric difference. The operator XOR's every geometry in inputGeometries with rightGeometry.
    • execute

      public abstract Geometry execute(Geometry leftGeometry, Geometry rightGeometry, SpatialReference sr, ProgressTracker progressTracker)
      Performs the Symmetric Difference operation on the two geometries.
      Specified by:
      execute in interface CombineOperator
      Parameters:
      leftGeometry - is one of the Geometry instances in the XOR operation.
      rightGeometry - is one of the Geometry instances in the XOR operation.
      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 the symmetric difference.
    • local

      public static OperatorSymmetricDifference local()