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