writeFormatted method

String writeFormatted(
  1. Geometry geometry
)

Same as write, but with newlines and spaces to make the well-known text more readable.

@param geometry a Geometry to process @return a <Geometry Tagged Text> string (see the OpenGIS Simple Features Specification), with newlines and spaces

Implementation

String writeFormatted(Geometry geometry) {
  StringBuffer sw = StringBuffer();
  try {
    writeFormatted4Args(geometry, true, sw, precisionModel);
  } catch (ex) {
    print(ex);
  }
  return sw.toString();
}