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