Package com.esri.core.geometry
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
-
Constructor Summary
Constructors Constructor Description OperatorSymmetricDifference()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract GeometryCursor
execute(GeometryCursor inputGeometries, GeometryCursor rightGeometry, SpatialReference sr, ProgressTracker progressTracker)
Performs the Symmetric Difference operation on the geometry set.abstract Geometry
execute(Geometry leftGeometry, Geometry rightGeometry, SpatialReference sr, ProgressTracker progressTracker)
Performs the Symmetric Difference operation on the two geometries.Operator.Type
getType()
static OperatorSymmetricDifference
local()
-
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
-
-
-
Method Detail
-
getType
public Operator.Type getType()
-
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 interfaceCombineOperator
- 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()
-
-