public abstract class OperatorSimplifyOGC extends Operator
Operator.Type
Constructor and Description |
---|
OperatorSimplifyOGC() |
Modifier and Type | Method and Description |
---|---|
abstract GeometryCursor |
execute(GeometryCursor geoms,
SpatialReference sr,
boolean bForceSimplify,
ProgressTracker progressTracker)
Processes geometry cursor to ensure its geometries are simple for OGC specification.
|
abstract Geometry |
execute(Geometry geom,
SpatialReference sr,
boolean bForceSimplify,
ProgressTracker progressTracker)
Processes geometry to ensure it is simple for OGC specification.
|
Operator.Type |
getType() |
abstract boolean |
isSimpleOGC(Geometry geom,
SpatialReference spatialRef,
boolean bForceTest,
NonSimpleResult result,
ProgressTracker progressTracker)
Tests if the Geometry is simple for OGC specification.
|
static OperatorSimplifyOGC |
local() |
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
public Operator.Type getType()
public abstract boolean isSimpleOGC(Geometry geom, SpatialReference spatialRef, boolean bForceTest, NonSimpleResult result, ProgressTracker progressTracker)
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).public abstract GeometryCursor execute(GeometryCursor geoms, SpatialReference sr, boolean bForceSimplify, ProgressTracker progressTracker)
geoms
- Geometries to be simplified.sr
- 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.public abstract Geometry execute(Geometry geom, SpatialReference sr, boolean bForceSimplify, ProgressTracker progressTracker)
geom
- The geometry to be simplified.sr
- 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.public static OperatorSimplifyOGC local()
Copyright © 2018. All rights reserved.