public class MultiPolygon extends Geometry
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<MultiPolygon> |
CREATOR |
JSON_COORDINATESJSON_TYPECONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
MultiPolygon() |
MultiPolygon(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPolygon(Polygon polygon) |
List<Polygon> |
getPolygons() |
String |
getType()
The type of GeoJSON object.
|
void |
removePolygon(Polygon polygon) |
void |
setPolygons(JSONArray polygons) |
void |
setPolygons(List<Polygon> polygons) |
JSONObject |
toJSON()
Formats the object's attributes as GeoJSON.
|
describeContents, readParcel, writeToParcelpublic static final Parcelable.Creator<MultiPolygon> CREATOR
public MultiPolygon()
public MultiPolygon(JSONObject json)
public void addPolygon(Polygon polygon)
public void removePolygon(Polygon polygon)
public void setPolygons(JSONArray polygons)
public String getType()
GeoJSONObjectGeoJSON, such as GeoJSON.TYPE_FEATURE.getType in class GeoJSONObjectpublic JSONObject toJSON() throws JSONException
GeometrytoJSON in class GeometryJSONObjectJSONException