Class GeoJSONFeatureCollectionWrapper
java.lang.Object
com.vividsolutions.jump.io.geojson.GeoJSONFeatureCollectionWrapper
- All Implemented Interfaces:
org.json.simple.JSONStreamAware
public class GeoJSONFeatureCollectionWrapper
extends Object
implements org.json.simple.JSONStreamAware
a wrapper for a feature collection to do funky geojson stuff to/with
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptioncreate a new empty FeatureCollection wrappercreate a wrapper for an existing FeatureCollection -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a Feature defined by given JSON-simple map to the collectionwe need to fixup the feature schema before the collection is ready to be usedintsize()static AttributeTypetoAttributeType(Object value) voidwriteJSONString(Writer out) voidwriteJSONString(Writer out, TaskMonitor monitor)
-
Field Details
-
ATTRIBUTETYPE_NULL
-
-
Constructor Details
-
GeoJSONFeatureCollectionWrapper
public GeoJSONFeatureCollectionWrapper()create a new empty FeatureCollection wrapper -
GeoJSONFeatureCollectionWrapper
create a wrapper for an existing FeatureCollection
-
-
Method Details
-
add
-
toAttributeType
-
size
public int size() -
getFeatureCollection
we need to fixup the feature schema before the collection is ready to be used- Returns:
- the FeatureCollection after the FeatureSchema has been fixed
-
writeJSONString
- Specified by:
writeJSONStringin interfaceorg.json.simple.JSONStreamAware- Throws:
IOException
-
writeJSONString
- Throws:
IOException
-