Class GeometryCombiner

    • Constructor Detail

      • GeometryCombiner

        public GeometryCombiner(Collection geoms)
        Creates a new combiner for a collection of geometries
        Parameters:
        geoms - the geometries to combine
    • Method Detail

      • combine

        public static Geometry combine(Collection geoms)
        Combines a collection of geometries.
        Parameters:
        geoms - the geometries to combine
        Returns:
        the combined geometry
      • combine

        public static Geometry combine(Geometry g0,
                                       Geometry g1)
        Combines two geometries.
        Parameters:
        g0 - a geometry to combine
        g1 - a geometry to combine
        Returns:
        the combined geometry
      • combine

        public static Geometry combine(Geometry g0,
                                       Geometry g1,
                                       Geometry g2)
        Combines three geometries.
        Parameters:
        g0 - a geometry to combine
        g1 - a geometry to combine
        g2 - a geometry to combine
        Returns:
        the combined geometry
      • extractFactory

        public static GeometryFactory extractFactory(Collection geoms)
        Extracts the GeometryFactory used by the geometries in a collection
        Parameters:
        geoms -
        Returns:
        a GeometryFactory
      • combine

        public Geometry combine()
        Computes the combination of the input geometries to produce the most appropriate Geometry or GeometryCollection
        Returns:
        a Geometry which is the combination of the inputs