toText method
Returns the Well-known Text representation of this Geometry
.
For a definition of the Well-known Text format, see the OpenGIS Simple
Features Specification.
@return the Well-known Text representation of this Geometry
Implementation
String toText() {
WKTWriter writer = new WKTWriter();
return writer.write(this);
}