Class GeometryDatatype
java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.geosparql.implementation.datatype.GeometryDatatype
- All Implemented Interfaces:
RDFDatatype
- Direct Known Subclasses:
GMLDatatype
,WKTDatatype
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final boolean
check
(RDFDatatype rdfDatatype) static final boolean
static final GeometryDatatype
static final GeometryDatatype
get
(RDFDatatype rdfDatatype) final GeometryWrapper
This method Parses the Geometry Literal to the JTS Geometryfinal GeometryWrapper
parse
(String lexicalForm, GeometryLiteralIndex.GeometryIndex targetIndex) abstract GeometryWrapper
static final void
Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isEqual, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString, unparse
-
Constructor Details
-
GeometryDatatype
-
-
Method Details
-
read
-
parse
This method Parses the Geometry Literal to the JTS Geometry- Specified by:
parse
in interfaceRDFDatatype
- Overrides:
parse
in classBaseDatatype
- Parameters:
lexicalForm
- - the Geometry Literal to be parsed- Returns:
- geometry - if the Geometry Literal is valid.
empty geometry - if the Geometry Literal is empty.
null - if the Geometry Literal is invalid. - Throws:
DatatypeFormatException
-
parse
public final GeometryWrapper parse(String lexicalForm, GeometryLiteralIndex.GeometryIndex targetIndex) throws DatatypeFormatException - Throws:
DatatypeFormatException
-
registerDatatypes
public static final void registerDatatypes() -
get
- Throws:
DatatypeFormatException
-
get
-
checkURI
- Throws:
DatatypeFormatException
-
check
-