/** * Combines a collection of geometries. * * @param geoms the geometries to combine * @return the combined geometry */ public static Geometry combine(Collection geoms) { GeometryCombiner combiner = new GeometryCombiner(geoms); return combiner.combine(); }
/** * Combines three geometries. * * @param g0 a geometry to combine * @param g1 a geometry to combine * @param g2 a geometry to combine * @return the combined geometry */ public static Geometry combine(Geometry g0, Geometry g1, Geometry g2) { GeometryCombiner combiner = new GeometryCombiner(createList(g0, g1, g2)); return combiner.combine(); }
/** * Combines two geometries. * * @param g0 a geometry to combine * @param g1 a geometry to combine * @return the combined geometry */ public static Geometry combine(Geometry g0, Geometry g1) { GeometryCombiner combiner = new GeometryCombiner(createList(g0, g1)); return combiner.combine(); }