use of org.apache.jena.geosparql.implementation.parsers.gml.GMLReader in project jena by apache.
the class GMLDatatype method read.
@Override
public GeometryWrapper read(String geometryLiteral) {
try {
GMLReader gmlReader = GMLReader.extract(geometryLiteral);
Geometry geometry = gmlReader.getGeometry();
String srsURI = gmlReader.getSrsURI();
DimensionInfo dimensionInfo = gmlReader.getDimensionInfo();
return new GeometryWrapper(geometry, srsURI, URI, dimensionInfo, geometryLiteral);
} catch (JDOMException | IOException ex) {
throw new DatatypeFormatException("Illegal GML literal:" + geometryLiteral + ". " + ex.getMessage());
}
}
Aggregations