use of org.apache.jena.geosparql.implementation.parsers.wkt.WKTReader in project jena by apache.
the class WKTDatatype method read.
@Override
public GeometryWrapper read(String geometryLiteral) {
WKTReader wktReader = WKTReader.extract(geometryLiteral);
Geometry geometry = wktReader.getGeometry();
String srsURI = wktReader.getSrsURI();
DimensionInfo dimensionInfo = wktReader.getDimensionInfo();
return new GeometryWrapper(geometry, srsURI, URI, dimensionInfo, geometryLiteral);
}
Aggregations