public abstract class GeoJson
extends java.lang.Object
Functions for parsing and formatting of GeoJSON values.
Constructor and Description |
---|
GeoJson() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(DataValue value)
Return a geography/geometry value in GeoJson representation (as a text string).
|
static JsonObject |
formatObject(DataValue value)
Return a geography/geometry value in GeoJson representation (as a JSON object).
|
static DataValue |
parse(java.lang.String text,
DataType type)
Return (nullable) A geography/geometry value parsed from GeoJson representation.
|
static DataValue |
parseObject(JsonObject geo,
DataType type)
Return a geography/geometry value parsed from GeoJson representation.
|
public static java.lang.String format(DataValue value)
Return a geography/geometry value in GeoJson representation (as a text string).
value
- (nullable) Data value with a geography or geometry type.public static JsonObject formatObject(DataValue value)
Return a geography/geometry value in GeoJson representation (as a JSON object).
value
- Data value with a geography or geometry type.public static DataValue parse(java.lang.String text, DataType type)
Return (nullable) A geography/geometry value parsed from GeoJson representation.
text
- Value in GeoJson representation (as a text string).type
- Data type for the expected parsed result.public static DataValue parseObject(JsonObject geo, DataType type)
Return a geography/geometry value parsed from GeoJson representation.
geo
- Value in GeoJson representation (as a JSON object).type
- Data type for the expected parsed result.