Package com.esri.core.geometry
Class OperatorSimpleRelation
java.lang.Object
com.esri.core.geometry.Operator
com.esri.core.geometry.OperatorSimpleRelation
- Direct Known Subclasses:
OperatorContains
,OperatorCrosses
,OperatorDisjoint
,OperatorEquals
,OperatorIntersects
,OperatorOverlaps
,OperatorTouches
,OperatorWithin
A base class for simple relation operators.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accelerateGeometry
(Geometry geometry, SpatialReference spatialReference, Geometry.GeometryAccelerationDegree accelDegree) Processes Geometry to accelerate operations on it.boolean
canAccelerateGeometry
(Geometry geometry) Returns true if the geometry can be accelerated.abstract boolean
execute
(Geometry inputGeom1, Geometry inputGeom2, SpatialReference sr, ProgressTracker progressTracker) Performs the given relation operation between two geometries.Methods inherited from class com.esri.core.geometry.Operator
deaccelerateGeometry, getType
-
Constructor Details
-
OperatorSimpleRelation
public OperatorSimpleRelation()
-
-
Method Details
-
execute
public abstract boolean execute(Geometry inputGeom1, Geometry inputGeom2, SpatialReference sr, ProgressTracker progressTracker) Performs the given relation operation between two geometries.- Returns:
- Returns True if the relation holds, False otherwise.
-
canAccelerateGeometry
Description copied from class:Operator
Returns true if the geometry can be accelerated.- Overrides:
canAccelerateGeometry
in classOperator
- Parameters:
geometry
-- Returns:
- true for geometries that can be accelerated, false for geometries that cannot
-
accelerateGeometry
public boolean accelerateGeometry(Geometry geometry, SpatialReference spatialReference, Geometry.GeometryAccelerationDegree accelDegree) Description copied from class:Operator
Processes Geometry to accelerate operations on it. The Geometry and it's copies remain accelerated until modified. The acceleration of Geometry can be a time consuming operation. The accelerated geometry also takes more memory. Some operators share the same accelerator, some require a different one. If the accelerator is built for the given parameters, the method returns immediately.- Overrides:
accelerateGeometry
in classOperator
- Parameters:
geometry
- The geometry to be acceleratedspatialReference
- The spatial reference of that geometryaccelDegree
- The acceleration degree for geometry.
-