getCoordinateSequence method

CoordinateSequence getCoordinateSequence(
  1. WKTTokenizer tokenizer,
  2. List<Ordinate> ordinateFlags
)

Reads a Coordinate from a stream using the given {@link WKTTokenizer}.

All ordinate values are read, but -depending on the {@link CoordinateSequenceFactory} of the underlying {@link GeometryFactory}- not necessarily all can be handled. Those are silently dropped.

@param tokenizer the tokenizer to use @param ordinateFlags a bit-mask defining the ordinates to read. @return a {@link CoordinateSequence} of length 1 containing the read ordinate values

@throws IOException if an I/O error occurs @throws ParseException if an unexpected token was encountered

Implementation

CoordinateSequence getCoordinateSequence(
    WKTTokenizer tokenizer, List<Ordinate> ordinateFlags) {
  return getCoordinateSequenceTryParen(tokenizer, ordinateFlags, false);
}