public class MultiLineString extends Geometry
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<MultiLineString> |
CREATOR |
JSON_COORDINATESJSON_TYPECONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
MultiLineString() |
MultiLineString(JSONArray lineStrings) |
MultiLineString(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLineString(LineString lineString) |
List<LineString> |
getLineStrings() |
String |
getType()
The type of GeoJSON object.
|
void |
removeLineString(LineString lineString) |
void |
setLineStrings(JSONArray lineStrings) |
void |
setLineStrings(List<LineString> lineStrings) |
JSONObject |
toJSON()
Formats the object's attributes as GeoJSON.
|
describeContents, readParcel, writeToParcelpublic static final Parcelable.Creator<MultiLineString> CREATOR
public MultiLineString()
public MultiLineString(JSONObject json)
public MultiLineString(JSONArray lineStrings)
public void addLineString(LineString lineString)
public void removeLineString(LineString lineString)
public List<LineString> getLineStrings()
public void setLineStrings(JSONArray lineStrings)
public void setLineStrings(List<LineString> lineStrings)
public String getType()
GeoJSONObjectGeoJSON, such as GeoJSON.TYPE_FEATURE.getType in class GeoJSONObjectpublic JSONObject toJSON() throws JSONException
GeometrytoJSON in class GeometryJSONObjectJSONException