writeWithStringBuffer method

void writeWithStringBuffer(
  1. Geometry geometry,
  2. StringBuffer writer
)

Converts a Geometry to its Well-known Text representation.

@param geometry a Geometry to process

Implementation

void writeWithStringBuffer(Geometry geometry, StringBuffer writer) {
  // determine the precision model
  PrecisionModel? pm = this.precisionModel;
  if (pm == null) pm = geometry.getFactory().getPrecisionModel();

  // write the geometry
  writeFormatted4Args(geometry, isFormatted, writer, pm);
}