createGeometryCollection method

GeometryCollection createGeometryCollection(
  1. List<Geometry>? geometries
)

Creates a GeometryCollection using the given Geometries; a null or empty array will create an empty GeometryCollection.

@param geometries an array of Geometries, each of which may be empty but not null, or null @return the created GeometryCollection

Implementation

GeometryCollection createGeometryCollection(List<Geometry>? geometries) {
  return new GeometryCollection.withFactory(geometries, this);
}