Class GMLDatatype
java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.geosparql.implementation.datatype.GeometryDatatype
org.apache.jena.geosparql.implementation.datatype.GMLDatatype
- All Implemented Interfaces:
RDFDatatype
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
XML element tag "gml" is defined for the convenience of GML generation.static final GMLDatatype
A static instance of GMLDatatype.static final String
The default GML type URI. -
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.jena.geosparql.implementation.datatype.GeometryDatatype
check, checkURI, get, get, parse, parse, registerDatatypes
Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isEqual, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType
-
Field Details
-
URI
The default GML type URI.- See Also:
-
INSTANCE
A static instance of GMLDatatype. -
GML_PREFIX
XML element tag "gml" is defined for the convenience of GML generation.- See Also:
-
-
Constructor Details
-
GMLDatatype
public GMLDatatype()private constructor - single global instance.
-
-
Method Details
-
unparse
This method Un-parses the JTS Geometry to the GML literal- Specified by:
unparse
in interfaceRDFDatatype
- Overrides:
unparse
in classBaseDatatype
- Parameters:
geometry
- - the JTS Geometry to be un-parsed- Returns:
- GML - the returned GML Literal.
Notice that the Spatial Reference System "urn:ogc:def:crs:OGC::CRS84" is predefined in the returned GML literal.
-
read
- Specified by:
read
in classGeometryDatatype
-
toString
- Overrides:
toString
in classBaseDatatype
-