use of org.apache.jena.geosparql.implementation.jts.CoordinateSequenceDimensions in project jena by apache.
the class GMLWriter method write.
public static String write(GeometryWrapper geometryWrapper) {
Geometry geometry = geometryWrapper.getParsingGeometry();
CoordinateSequenceDimensions dimensions = geometryWrapper.getCoordinateSequenceDimensions();
String srsName = geometryWrapper.getSrsURI();
Element gmlElement = expand(geometry, dimensions, srsName);
String output = XML_OUTPUT.outputString(gmlElement);
return output;
}
use of org.apache.jena.geosparql.implementation.jts.CoordinateSequenceDimensions in project jena by apache.
the class WKTWriter method write.
public static final String write(GeometryWrapper geometryWrapper) {
StringBuilder sb = new StringBuilder();
SRSInfo srsInfo = geometryWrapper.getSrsInfo();
if (!srsInfo.isWktDefault()) {
sb.append("<").append(geometryWrapper.getSrsURI()).append("> ");
}
Geometry geometry = geometryWrapper.getParsingGeometry();
CoordinateSequenceDimensions dimensions = geometryWrapper.getCoordinateSequenceDimensions();
String wktText = expand(geometry, dimensions);
sb.append(wktText);
return sb.toString();
}
Aggregations