Class OperatorDifference

    • Constructor Detail

      • OperatorDifference

        public OperatorDifference()
    • Method Detail

      • execute

        public abstract GeometryCursor execute​(GeometryCursor inputGeometries,
                                               GeometryCursor subtractor,
                                               SpatialReference sr,
                                               ProgressTracker progressTracker)
        Performs the Topological Difference operation on the geometry set.
        Parameters:
        inputGeometries - is the set of Geometry instances to be subtracted by the subtractor
        subtractor - is the Geometry being subtracted.
        Returns:
        Returns the result of the subtraction. The operator subtracts subtractor from every geometry in inputGeometries.
      • execute

        public abstract Geometry execute​(Geometry inputGeometry,
                                         Geometry subtractor,
                                         SpatialReference sr,
                                         ProgressTracker progressTracker)
        Performs the Topological Difference operation on the two geometries.
        Specified by:
        execute in interface CombineOperator
        Parameters:
        inputGeometry - is the Geometry instance on the left hand side of the subtraction.
        subtractor - is the Geometry on the right hand side being subtracted.
        sr - The spatial reference to get the tolerance value from. When sr is null, the tolerance is calculated from the input geometries.
        progressTracker - ProgressTracker instance that is used to cancel the lengthy operation. Can be null.
        Returns:
        Returns the result of subtraction.