rdf4j-postgis
Version 0.1.0.0
|
WKTDatatype class allows the URI "geo:wktLiteral" to be used as a datatype and it will parse that datatype to a JTS Geometry. More...
Public Member Functions | |
String | unparse (Geometry geometry) |
This method Un-parses the JTS Geometry to the WKT literal. More... | |
Geometry | read (String geometryLiteral) |
String | toString () |
Static Public Member Functions | |
static String | encodePolyline (final LineString linestring) |
Encodes a sequence of LatLngs into an encoded path string. More... | |
static List< Coordinate > | decodePolyline (String polyline, int precision) |
Static Public Attributes | |
static final String | URI = POSTGIS.EncodedPolyline |
The default WKT type URI. More... | |
static final EncodedPolylineDatatype | INSTANCE = new EncodedPolylineDatatype() |
A static instance of WKTDatatype. More... | |
Static Private Member Functions | |
static void | encode (long v, StringBuffer result) |
WKTDatatype class allows the URI "geo:wktLiteral" to be used as a datatype and it will parse that datatype to a JTS Geometry.
Req 10 All RDFS Literals of type geo:wktLiteral shall consist of an optional URI identifying the coordinate reference system followed by Simple Features Well Known Text (WKT) describing a geometric value. Valid geo:wktLiterals are formed by concatenating a valid, absolute URI as defined in [RFC 2396], one or more spaces (Unicode U+0020 character) as a separator, and a WKT string as defined in Simple Features [ISO 19125-1].
Req 11 The URI
shall be assumed as the spatial reference system for geo:wktLiterals that do not * specify an explicit spatial reference system URI.
|
static |
Referenced by EncodedPolylineDatatype.read().
|
staticprivate |
Referenced by EncodedPolylineDatatype.encodePolyline().
|
static |
Encodes a sequence of LatLngs into an encoded path string.
Modified from https://gitlab.com/aceperry/androidmapsutil Apache License 2.0
References EncodedPolylineDatatype.encode().
Referenced by EncodedPolylineDatatype.unparse().
Geometry read | ( | String | geometryLiteral | ) |
Reimplemented from VectorLiteral.
References EncodedPolylineDatatype.decodePolyline().
String toString | ( | ) |
References EncodedPolylineDatatype.URI.
String unparse | ( | Geometry | geometry | ) |
This method Un-parses the JTS Geometry to the WKT literal.
geometry | - the JTS Geometry to be un-parsed |
Reimplemented from VectorLiteral.
References EncodedPolylineDatatype.encodePolyline().
|
static |
A static instance of WKTDatatype.
Referenced by LiteralRegistry.LiteralRegistry().
|
static |
The default WKT type URI.
Referenced by LiteralRegistry.LiteralRegistry(), and EncodedPolylineDatatype.toString().