public class FeatureConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
mapper
Object mapper
|
| Constructor and Description |
|---|
FeatureConverter() |
| Modifier and Type | Method and Description |
|---|---|
static Feature |
toFeature(Geometry simpleGeometry)
Convert a simple geometry to a feature
|
static Feature |
toFeature(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a feature
|
static Feature |
toFeature(Object value)
Convert the object value to a feature
|
static Feature |
toFeature(String content)
Convert the string content to a feature
|
static FeatureCollection |
toFeatureCollection(Collection<Geometry> simpleGeometries)
Convert simple geometries to a feature collection
|
static FeatureCollection |
toFeatureCollection(Geometry simpleGeometry)
Convert a simple geometry to a feature collection
|
static FeatureCollection |
toFeatureCollection(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a feature collection
|
static FeatureCollection |
toFeatureCollection(Object value)
Convert the object value to a feature collection
|
static FeatureCollection |
toFeatureCollection(String content)
Convert the string content to a feature collection
|
static GeoJsonObject |
toGeoJsonObject(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a GeoJSON object
|
static GeoJsonObject |
toGeoJsonObject(Object value)
Convert the object value to a GeoJSON object
|
static GeoJsonObject |
toGeoJsonObject(String content)
Convert the string content to a GeoJSON object
|
static Geometry |
toGeometry(Geometry simpleGeometry)
Convert a simple geometry to a GeoJSON geometry
|
static Geometry |
toGeometry(com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a Geometry
|
static Geometry |
toGeometry(Object value)
Convert the object value to a geometry
|
static Geometry |
toGeometry(String content)
Convert the string content to a geometry
|
static Map<String,Object> |
toMap(GeoJsonObject object)
Convert the GeoJSON object to an object map
|
static Map<String,Object> |
toMap(Geometry simpleGeometry)
Convert the simple geometry to an object map
|
static String |
toStringValue(Geometry simpleGeometry)
Convert the simple geometry to a string value
|
static String |
toStringValue(Object object)
Convert the object to a string value
|
static <T> T |
toTypedObject(Class<T> type,
com.fasterxml.jackson.databind.JsonNode tree)
Convert the JSON tree to a typed object
|
static <T> T |
toTypedObject(Class<T> type,
Object value)
Convert the object value to a typed object
|
static <T> T |
toTypedObject(Class<T> type,
String content)
Convert the string content to a typed object
|
public static final com.fasterxml.jackson.databind.ObjectMapper mapper
public static Feature toFeature(String content)
content - string contentpublic static Feature toFeature(Object value)
value - object valuepublic static Feature toFeature(com.fasterxml.jackson.databind.JsonNode tree)
tree - tree nodepublic static Feature toFeature(Geometry simpleGeometry)
simpleGeometry - simple geometrypublic static FeatureCollection toFeatureCollection(String content)
content - string contentpublic static FeatureCollection toFeatureCollection(Object value)
value - object valuepublic static FeatureCollection toFeatureCollection(com.fasterxml.jackson.databind.JsonNode tree)
tree - tree nodepublic static FeatureCollection toFeatureCollection(Geometry simpleGeometry)
simpleGeometry - simple geometrypublic static FeatureCollection toFeatureCollection(Collection<Geometry> simpleGeometries)
simpleGeometries - simple geometriespublic static Geometry toGeometry(String content)
content - string contentpublic static Geometry toGeometry(Object value)
value - object valuepublic static Geometry toGeometry(com.fasterxml.jackson.databind.JsonNode tree)
tree - tree nodepublic static Geometry toGeometry(Geometry simpleGeometry)
simpleGeometry - simple geometrypublic static GeoJsonObject toGeoJsonObject(String content)
content - string contentpublic static GeoJsonObject toGeoJsonObject(Object value)
value - object valuepublic static GeoJsonObject toGeoJsonObject(com.fasterxml.jackson.databind.JsonNode tree)
tree - tree nodepublic static Map<String,Object> toMap(GeoJsonObject object)
object - GeoJSON objectpublic static Map<String,Object> toMap(Geometry simpleGeometry)
simpleGeometry - simple geometrypublic static String toStringValue(Object object)
object - objectpublic static String toStringValue(Geometry simpleGeometry)
simpleGeometry - simple geometrypublic static <T> T toTypedObject(Class<T> type, String content)
T - object class typetype - object typecontent - string contentpublic static <T> T toTypedObject(Class<T> type, Object value)
T - object class typetype - object typevalue - object valuepublic static <T> T toTypedObject(Class<T> type, com.fasterxml.jackson.databind.JsonNode tree)
T - object class typetype - object typetree - tree nodeCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.