public class GeometryCollection extends java.lang.Object implements GeoJSON
| Constructor and Description |
|---|
GeometryCollection(java.util.List<Geometry> geometries)
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static GeometryCollection |
fromGeometries(java.util.List<Geometry> geometries)
Create a
GeometryCollection from a List of geometries. |
static GeometryCollection |
fromJson(java.lang.String json)
Create a GeoJSON geometry collection object from JSON.
|
java.util.List<Geometry> |
getGeometries()
Get the List containing all the geometries within collection.
|
java.lang.String |
getType()
Should always be "GeometryCollection".
|
java.lang.String |
toJson()
Convert geometry collection into JSON.
|
public java.lang.String getType()
public java.util.List<Geometry> getGeometries()
public static GeometryCollection fromGeometries(java.util.List<Geometry> geometries)
GeometryCollection from a List of geometries.geometries - List of GeometryGeometryCollectionpublic static GeometryCollection fromJson(java.lang.String json)
json - String of JSON making up a geometry collection.GeometryCollection GeoJSON object.