Package com.mongodb.client.model.geojson
Class GeometryCollection
-
- com.mongodb.client.model.geojson.Geometry
-
- com.mongodb.client.model.geojson.GeometryCollection
-
public final class GeometryCollection extends Geometry
A representation of a GeoJSON GeometryCollection.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description GeometryCollection(CoordinateReferenceSystem coordinateReferenceSystem, <? extends Geometry> geometries)
Construct an instance with the given list of Geometry objects<? extends Geometry> geometries)
Construct an instance with the given list of Geometry objects
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
o)
<? extends Geometry>
getGeometries()
Gets the list of Geometry objects in this collection.GeoJsonObjectType
getType()
Gets the GeoJSON object type.int
hashCode()
toString()
-
Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson
-
-
-
-
Constructor Detail
-
GeometryCollection
public GeometryCollection(<? extends Geometry> geometries)
Construct an instance with the given list of Geometry objects- Parameters:
geometries
- the list of Geometry objects
-
GeometryCollection
public GeometryCollection(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, <? extends Geometry> geometries)
Construct an instance with the given list of Geometry objects- Parameters:
coordinateReferenceSystem
- the coordinate reference systemgeometries
- the list of Geometry objects
-
-
Method Detail
-
getType
public GeoJsonObjectType getType()
Description copied from class:Geometry
Gets the GeoJSON object type.
-
getGeometries
public <? extends Geometry> getGeometries()
Gets the list of Geometry objects in this collection.- Returns:
- the list
-
toString
public toString()
- Overrides:
in class
-
-