public class FeatureCollection extends Object implements GjsonObject, Iterable<Feature>
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureCollection.Builder |
| Constructor and Description |
|---|
FeatureCollection() |
FeatureCollection(Feature... features) |
FeatureCollection(FeatureCollection.Builder builder) |
FeatureCollection(List<Feature> features) |
| Modifier and Type | Method and Description |
|---|---|
FeatureCollection |
decode(String geojson) |
org.json.JSONObject |
encode() |
Enumeration<Point> |
enumeration() |
List<Feature> |
getFeatures() |
GjsonObjectType |
getType() |
boolean |
isValid() |
Iterator<Feature> |
iterator() |
static FeatureCollection |
newInstance() |
static FeatureCollection |
of(Feature... features) |
static FeatureCollection |
of(List<Feature> features) |
static FeatureCollection |
of(String geojson) |
void |
setFeatures(List<Feature> features) |
void |
setType(GjsonObjectType type) |
String |
toString() |
String |
toString(int indent) |
void |
validation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic FeatureCollection(FeatureCollection.Builder builder)
builder - public FeatureCollection(Feature... features)
features - public FeatureCollection()
public static final FeatureCollection of(String geojson)
geojson - public static final FeatureCollection of(List<Feature> features)
features - public static final FeatureCollection of(Feature... features)
features - public static final FeatureCollection newInstance()
public FeatureCollection decode(String geojson)
decode in interface GjsonObjectpublic org.json.JSONObject encode()
encode in interface GjsonObjectpublic Enumeration<Point> enumeration()
enumeration in interface GjsonObjectpublic boolean isValid()
isValid in interface GjsonObjectpublic void validation()
throws GjsonEncodeException
validation in interface GjsonObjectGjsonEncodeExceptionpublic String toString(int indent)
toString in interface GjsonObjectpublic String toString()
toString in interface GjsonObjecttoString in class Objectpublic GjsonObjectType getType()
getType in interface GjsonObjectpublic void setType(GjsonObjectType type)
setType in interface GjsonObjectCopyright © 2018 Terra Software Informatics LLC.. All rights reserved.