readLinearRingText method

LinearRing readLinearRingText(
  1. WKTTokenizer tokenizer,
  2. List<Ordinate> ordinateFlags
)

Creates a LinearRing using the next token in the stream.

@param tokenizer tokenizer over a stream of text in Well-known Text format. The next tokens must form a <LineString Text>. @return a LinearRing specified by the next token in the stream @throws IOException if an I/O error occurs @throws ParseException if the coordinates used to create the LinearRing do not form a closed linestring, or if an unexpected token was encountered

Implementation

LinearRing readLinearRingText(
    WKTTokenizer tokenizer, List<Ordinate> ordinateFlags) {
  return geometryFactory
      .createLinearRingSeq(getCoordinateSequence(tokenizer, ordinateFlags));
}