appendLinearRingTaggedText method

void appendLinearRingTaggedText(
  1. LinearRing linearRing,
  2. List<Ordinate> outputOrdinates,
  3. bool useFormatting,
  4. int level,
  5. StringBuffer writer,
  6. NumberFormat formatter,
)

Converts a LinearRing to <LinearRing Tagged Text> format, then appends it to the writer.

@param linearRing the LinearRing to process @param useFormatting flag indicating that the output should be formatted @param level the indentation level @param writer the output writer to append to @param formatter the NumberFormatter to use to convert from a precise coordinate to an external coordinate

Implementation

void appendLinearRingTaggedText(
    LinearRing linearRing,
    List<Ordinate> outputOrdinates,
    bool useFormatting,
    int level,
    StringBuffer writer,
    NumberFormat formatter) {
  writer.write("LINEARRING ");
  appendOrdinateText(outputOrdinates, writer);
  appendSequenceText(linearRing.getCoordinateSequence(), outputOrdinates,
      useFormatting, level, false, writer, formatter);
}