public final class GeometryCollection extends Geometry
Constructor | Description |
---|---|
GeometryCollection(CoordinateReferenceSystem coordinateReferenceSystem,
List<? extends Geometry> geometries) |
Construct an instance with the given list of Geometry objects
|
GeometryCollection(List<? extends Geometry> geometries) |
Construct an instance with the given list of Geometry objects
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
List<? extends Geometry> |
getGeometries() |
Gets the list of Geometry objects in this collection.
|
GeoJsonObjectType |
getType() |
Gets the GeoJSON object type.
|
int |
hashCode() |
|
String |
toString() |
getCoordinateReferenceSystem, toJson
public GeometryCollection(List<? extends Geometry> geometries)
geometries
- the list of Geometry objectspublic GeometryCollection(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, List<? extends Geometry> geometries)
coordinateReferenceSystem
- the coordinate reference systemgeometries
- the list of Geometry objectspublic GeoJsonObjectType getType()
Geometry
public List<? extends Geometry> getGeometries()