Class OperatorUnion

    • Constructor Detail

      • OperatorUnion

        public OperatorUnion()
    • Method Detail

      • execute

        public abstract Geometry execute​(Geometry geom1,
                                         Geometry geom2,
                                         SpatialReference sr,
                                         ProgressTracker progressTracker)
        Performs the Topological Union operation on two geometries.
        Specified by:
        execute in interface CombineOperator
        Parameters:
        geom1 - and geom2 are the geometry instances to be unioned.
        geom2 - is the geometry instance to be operated on.
        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 geoemtry. In some cases the returned value can point to geom1 or geom2 instance. For example, the OperatorIntersection may return geom2 when it is completely inside of the geom1.