getCoordinatesNoLeftParen method
Returns the next array of Coordinate
s in the stream.
@param tokenizer tokenizer over a stream of text in Well-known Text
format. The next element returned by the stream should be a number.
@return the next array of Coordinate
s in the
stream.
@throws IOException if an I/O error occurs
@throws ParseException if an unexpected token was encountered
@deprecated in favor of functions returning {@link CoordinateSequence}s
Implementation
List<Coordinate> getCoordinatesNoLeftParen(WKTTokenizer tokenizer) {
List<Coordinate> coordinates = [];
coordinates.add(getPreciseCoordinate(tokenizer));
String nextToken = getNextCloserOrComma(tokenizer);
while (nextToken == COMMA) {
coordinates.add(getPreciseCoordinate(tokenizer));
nextToken = getNextCloserOrComma(tokenizer);
}
return coordinates;
}