Package com.esri.core.geometry
Class OperatorSimplifyLocalOGC
- java.lang.Object
-
- com.esri.core.geometry.Operator
-
- com.esri.core.geometry.OperatorSimplifyOGC
-
- com.esri.core.geometry.OperatorSimplifyLocalOGC
-
class OperatorSimplifyLocalOGC extends OperatorSimplifyOGC
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
-
Constructor Summary
Constructors Constructor Description OperatorSimplifyLocalOGC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryCursor
execute(GeometryCursor geoms, SpatialReference spatialRef, boolean bForceSimplify, ProgressTracker progressTracker)
Processes geometry cursor to ensure its geometries are simple for OGC specification.Geometry
execute(Geometry geom, SpatialReference spatialRef, boolean bForceSimplify, ProgressTracker progressTracker)
Processes geometry to ensure it is simple for OGC specification.boolean
isSimpleOGC(Geometry geom, SpatialReference spatialRef, boolean bForceTest, NonSimpleResult result, ProgressTracker progressTracker)
Tests if the Geometry is simple for OGC specification.-
Methods inherited from class com.esri.core.geometry.OperatorSimplifyOGC
getType, local
-
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
-
-
-
Method Detail
-
execute
public GeometryCursor execute(GeometryCursor geoms, SpatialReference spatialRef, boolean bForceSimplify, ProgressTracker progressTracker)
Description copied from class:OperatorSimplifyOGC
Processes geometry cursor to ensure its geometries are simple for OGC specification.- Specified by:
execute
in classOperatorSimplifyOGC
- Parameters:
geoms
- Geometries to be simplified.spatialRef
- Spatial reference to obtain the tolerance from. When null, the tolerance will be derived individually for each geometry from its bounds.bForceSimplify
- When True, the Geometry will be simplified regardless of the internal IsKnownSimple flag.progressTracker
- Allows cancellation of a long operation. Can be null.- Returns:
- Returns a GeometryCursor of simplified geometries. The isSimpleOGC returns true after this call.
-
isSimpleOGC
public boolean isSimpleOGC(Geometry geom, SpatialReference spatialRef, boolean bForceTest, NonSimpleResult result, ProgressTracker progressTracker)
Description copied from class:OperatorSimplifyOGC
Tests if the Geometry is simple for OGC specification.- Specified by:
isSimpleOGC
in classOperatorSimplifyOGC
- Parameters:
geom
- The Geometry to be tested.spatialRef
- Spatial reference to obtain the tolerance from. When null, the tolerance will be derived individually from geometry bounds.bForceTest
- When True, the Geometry will be tested regardless of the IsKnownSimple flag.progressTracker
- Allows cancellation of a long operation. Can be null. Note: As other methods in the OperatorSimplifyOGC, this method uses tolerance from the spatial reference. Points that are within the tolerance are considered equal. When this method returns true, the OperatorSimplify.isSimpleAsFeature will return true also (this does not necessary happen the other way around).
-
execute
public Geometry execute(Geometry geom, SpatialReference spatialRef, boolean bForceSimplify, ProgressTracker progressTracker)
Description copied from class:OperatorSimplifyOGC
Processes geometry to ensure it is simple for OGC specification.- Specified by:
execute
in classOperatorSimplifyOGC
- Parameters:
geom
- The geometry to be simplified.spatialRef
- Spatial reference to obtain the tolerance from. When null, the tolerance will be derived individually from geometry bounds.bForceSimplify
- When True, the Geometry will be simplified regardless of the internal IsKnownSimple flag.progressTracker
- Allows cancellation of a long operation. Can be null.- Returns:
- Returns a simple Geometry that should be visually equivalent to the input geometry. The isSimpleOGC returns true after this call.
-
-