use of org.apache.jena.geosparql.implementation.jts.CustomCoordinateSequence in project jena by apache.
the class GMLReader method buildLineString.
private static LineString buildLineString(Element gmlElement, CoordinateSequenceDimensions dims) {
int srsDimension = CoordinateSequenceDimensions.convertToInt(dims);
String posList = extractPosList(gmlElement, srsDimension);
CustomCoordinateSequence coordinateSequence = new CustomCoordinateSequence(dims, posList);
return GEOMETRY_FACTORY.createLineString(coordinateSequence);
}
use of org.apache.jena.geosparql.implementation.jts.CustomCoordinateSequence in project jena by apache.
the class GeometryWrapper method fromPoint.
/**
* Builds a WKT Point of Geometry Wrapper.<br>
* This method does not use the GeometryLiteralIndex and so is best used for
* one of Geometry Wrappers.
*
* @return Geometry Wrapper of WKT Point.
*/
public static final GeometryWrapper fromPoint(double x, double y, String srsURI) {
CustomCoordinateSequence coordSequence = CustomCoordinateSequence.createPoint(x, y);
GeometryWrapper geometryWrapper = new GeometryWrapper(coordSequence, WKTDatatype.URI, srsURI);
return geometryWrapper;
}
Aggregations