Package mil.nga.oapi.features.json
Class FeaturesConverter
- java.lang.Object
-
- mil.nga.oapi.features.json.FeaturesConverter
-
public class FeaturesConverter extends Object
Features Converter- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description FeaturesConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection
toCollection(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a collectionstatic Collection
toCollection(Object value)
Convert the object value to a collectionstatic Collection
toCollection(String content)
Convert the string content to a collectionstatic Collections
toCollections(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a collectionsstatic Collections
toCollections(Object value)
Convert the object value to a collectionsstatic Collections
toCollections(String content)
Convert the string content to a collectionsstatic FeatureCollection
toFeatureCollection(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a feature collectionstatic FeatureCollection
toFeatureCollection(Object value)
Convert the object value to a feature collectionstatic FeatureCollection
toFeatureCollection(String content)
Convert the string content to a feature collectionstatic FeatureCollection
toFeatureCollection(Collection<Geometry> simpleGeometries)
Convert simple geometries to a feature collectionstatic FeatureCollection
toFeatureCollection(Geometry simpleGeometry)
Convert a simple geometry to a feature collectionstatic String
toStringValue(Object object)
Convert the object to a string valuestatic String
toStringValue(FeatureCollection featureCollection)
Convert the feature collection to a string value
-
-
-
Method Detail
-
toCollections
public static Collections toCollections(String content)
Convert the string content to a collections- Parameters:
content
- string content- Returns:
- collections
-
toCollections
public static Collections toCollections(Object value)
Convert the object value to a collections- Parameters:
value
- object value- Returns:
- collections
-
toCollections
public static Collections toCollections(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a collections- Parameters:
tree
- tree node- Returns:
- collections
-
toCollection
public static Collection toCollection(String content)
Convert the string content to a collection- Parameters:
content
- string content- Returns:
- collection
-
toCollection
public static Collection toCollection(Object value)
Convert the object value to a collection- Parameters:
value
- object value- Returns:
- collection
-
toCollection
public static Collection toCollection(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a collection- Parameters:
tree
- tree node- Returns:
- collection
-
toFeatureCollection
public static FeatureCollection toFeatureCollection(String content)
Convert the string content to a feature collection- Parameters:
content
- string content- Returns:
- feature collection
-
toFeatureCollection
public static FeatureCollection toFeatureCollection(Object value)
Convert the object value to a feature collection- Parameters:
value
- object value- Returns:
- feature collection
-
toFeatureCollection
public static FeatureCollection toFeatureCollection(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a feature collection- Parameters:
tree
- tree node- Returns:
- feature collection
-
toFeatureCollection
public static FeatureCollection toFeatureCollection(Geometry simpleGeometry)
Convert a simple geometry to a feature collection- Parameters:
simpleGeometry
- simple geometry- Returns:
- feature collection
-
toFeatureCollection
public static FeatureCollection toFeatureCollection(Collection<Geometry> simpleGeometries)
Convert simple geometries to a feature collection- Parameters:
simpleGeometries
- simple geometries- Returns:
- feature collection
-
toStringValue
public static String toStringValue(FeatureCollection featureCollection)
Convert the feature collection to a string value- Parameters:
featureCollection
- feature collection- Returns:
- string value
-
-