Package com.esri.core.geometry
Class Operator
- java.lang.Object
-
- com.esri.core.geometry.Operator
-
- Direct Known Subclasses:
OperatorBoundary
,OperatorBuffer
,OperatorCentroid2D
,OperatorClip
,OperatorConvexHull
,OperatorCut
,OperatorDensifyByLength
,OperatorDifference
,OperatorDistance
,OperatorExportToESRIShape
,OperatorExportToGeoJson
,OperatorExportToJson
,OperatorExportToWkb
,OperatorExportToWkt
,OperatorGeneralize
,OperatorGeodesicBuffer
,OperatorGeodeticArea
,OperatorGeodeticDensifyByLength
,OperatorGeodeticLength
,OperatorImportFromESRIShape
,OperatorImportFromGeoJson
,OperatorImportFromJson
,OperatorImportFromWkb
,OperatorImportFromWkt
,OperatorIntersection
,OperatorOffset
,OperatorProject
,OperatorProximity2D
,OperatorRelate
,OperatorShapePreservingDensify
,OperatorSimpleRelation
,OperatorSimplify
,OperatorSimplifyOGC
,OperatorSymmetricDifference
,OperatorUnion
public abstract class Operator extends java.lang.Object
The base class for Geometry Operators.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Operator.Type
The operator type enum.
-
Constructor Summary
Constructors Constructor Description Operator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
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.static void
deaccelerateGeometry(Geometry geometry)
Removes accelerators from given geometry.abstract Operator.Type
getType()
-
-
-
Method Detail
-
getType
public abstract Operator.Type getType()
-
accelerateGeometry
public boolean accelerateGeometry(Geometry geometry, SpatialReference spatialReference, Geometry.GeometryAccelerationDegree accelDegree)
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.- Parameters:
geometry
- The geometry to be acceleratedspatialReference
- The spatial reference of that geometryaccelDegree
- The acceleration degree for geometry.
-
canAccelerateGeometry
public boolean canAccelerateGeometry(Geometry geometry)
Returns true if the geometry can be accelerated.- Parameters:
geometry
-- Returns:
- true for geometries that can be accelerated, false for geometries that cannot
-
deaccelerateGeometry
public static void deaccelerateGeometry(Geometry geometry)
Removes accelerators from given geometry.- Parameters:
geometry
- The geometry instance to remove accelerators from.
-
-