Class OperatorSimplifyOGC

java.lang.Object
com.esri.core.geometry.Operator
com.esri.core.geometry.OperatorSimplifyOGC
Direct Known Subclasses:
OperatorSimplifyLocalOGC

public abstract class OperatorSimplifyOGC extends Operator
Simplifies the geometry or determines if the geometry is simple. Follows the OGC specification for the Simple Feature Access v. 1.2.1 (06-103r4). Uses tolerance to determine equal vertices or points of intersection.
  • Constructor Details

    • OperatorSimplifyOGC

      public OperatorSimplifyOGC()
  • Method Details

    • getType

      public Operator.Type getType()
      Specified by:
      getType in class Operator
    • isSimpleOGC

      public abstract boolean isSimpleOGC(Geometry geom, SpatialReference spatialRef, boolean bForceTest, NonSimpleResult result, ProgressTracker progressTracker)
      Tests if the Geometry is simple for OGC specification.
      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 abstract GeometryCursor execute(GeometryCursor geoms, SpatialReference sr, boolean bForceSimplify, ProgressTracker progressTracker)
      Processes geometry cursor to ensure its geometries are simple for OGC specification.
      Parameters:
      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.
      Returns:
      Returns a GeometryCursor of simplified geometries. The isSimpleOGC returns true after this call.
    • execute

      public abstract Geometry execute(Geometry geom, SpatialReference sr, boolean bForceSimplify, ProgressTracker progressTracker)
      Processes geometry to ensure it is simple for OGC specification.
      Parameters:
      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.
      Returns:
      Returns a simple Geometry that should be visually equivalent to the input geometry. The isSimpleOGC returns true after this call.
    • local

      public static OperatorSimplifyOGC local()