public abstract class GeoAtom
extends java.lang.Object
Functions for parsing and formatting of GML data values for the OData ATOM format.
Constructor and Description |
---|
GeoAtom() |
Modifier and Type | Method and Description |
---|---|
static void |
format(XmlElement geo,
DataValue value)
Convert a geography/geometry value into GML representation.
|
static DataValue |
parse(XmlElement geo,
DataType type)
Return a geography/geometry value parsed from GML representation.
|
static java.lang.String |
parseType(XmlNode geoNode,
DataType type)
Tries to parse the type of the given XmlNode.
|
public static void format(XmlElement geo, DataValue value)
Convert a geography/geometry value into GML representation.
geo
- XML element to receive the GML representation.value
- Data value with a geography or geometry type.public static DataValue parse(XmlElement geo, DataType type)
Return a geography/geometry value parsed from GML representation.
geo
- Value in GML representation.type
- Data type for the expected parsed result.public static java.lang.String parseType(XmlNode geoNode, DataType type)
Tries to parse the type of the given XmlNode. (Maps it to a meaningful GeoAtom type).
geoNode
- XmlNode of which type should be parsed.type
- A type which determines if the XmlNode should be parsed to a geography or a geometry type.DataValue
starting with "Geography" or "Geometry".