Class OperatorSimplify

  • Direct Known Subclasses:
    OperatorSimplifyLocal

    public abstract class OperatorSimplify
    extends Operator
    Simplifies the geometry or determines if the geometry is simple. The goal of the OperatorSimplify is to produce a geometry that is valid for the Geodatabase to store without additional processing. The Geoprocessing tool CheckGeometries should accept geometries produced by this operator's execute method. For Polylines the effect of execute is the same as IPolyline6.NonPlanarSimplify, while for the Polygons and Multipoints it is same as ITopologicalOperator.Simplify. For the Point class this operator does nothing, and the point is always simple. The isSimpleAsFeature should return true after the execute method. See also OperatorSimplifyOGC.
    • Constructor Detail

      • OperatorSimplify

        public OperatorSimplify()
    • Method Detail

      • isSimpleAsFeature

        public abstract boolean isSimpleAsFeature​(Geometry geom,
                                                  SpatialReference spatialRef,
                                                  boolean bForceTest,
                                                  NonSimpleResult result,
                                                  ProgressTracker progressTracker)
        Tests if the Geometry is simple.
        Parameters:
        geom - The Geometry to be tested.
        spatialRef - Spatial reference from which the tolerance is obtained. Can be null, then a very small tolerance value is derived from the geometry bounds.
        bForceTest - When True, the Geometry will be tested regardless of the internal IsKnownSimple flag.
        result - if not null, will contain the results of the check.
        progressTracker - Allows cancellation of a long operation. Can be null.
      • isSimpleAsFeature

        public boolean isSimpleAsFeature​(Geometry geom,
                                         SpatialReference spatialRef,
                                         ProgressTracker progressTracker)
        Tests if the Geometry is simple (second call will use a cached IsKnownSimple flag and immediately return).
        Parameters:
        geom - The Geometry to be tested.
        spatialRef - Spatial reference from which the tolerance is obtained. Can be null, then a very small tolerance value is derived from the geometry bounds.
        progressTracker - Allows cancellation of a long operation. Can be null.
      • execute

        public abstract GeometryCursor execute​(GeometryCursor geoms,
                                               SpatialReference sr,
                                               boolean bForceSimplify,
                                               ProgressTracker progressTracker)
        Performs the Simplify operation on the geometry cursor.
        Parameters:
        geoms - Geometries to simplify.
        sr - Spatial reference from which the tolerance is obtained. 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 isSimpleAsFeature returns true after this method.
      • execute

        public abstract Geometry execute​(Geometry geom,
                                         SpatialReference sr,
                                         boolean bForceSimplify,
                                         ProgressTracker progressTracker)
        Performs the Simplify operation on the geometry.
        Parameters:
        geom - Geometry to simplify.
        sr - Spatial reference from which the tolerance is obtained. 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 simple geometry. The isSimpleAsFeature returns true after this method.