write method
Converts a Geometry
to its Well-known Text representation.
@param geometry a Geometry
to process
@return a <Geometry Tagged Text> string (see the OpenGIS Simple
Features Specification)
Implementation
String write(Geometry geometry) {
StringBuffer sw = StringBuffer();
// determine the precision model
PrecisionModel? pm = this.precisionModel;
if (pm == null) pm = geometry.getFactory().getPrecisionModel();
try {
writeFormatted4Args(geometry, false, sw, pm);
} catch (ex) {
print(ex);
}
return sw.toString();
}