/** * Reads a Well-Known Text representation of a {@link Geometry} * from a {@link Reader}. * *@param reader a Reader which will return a <Geometry Tagged Text> * string (see the OpenGIS Simple Features Specification) *@return a <code>Geometry</code> read from <code>reader</code> *@throws ParseException if a parsing problem occurs */ public Geometry read(Reader reader) throws ParseException { StreamTokenizer tokenizer = createTokenizer(reader); try { return readGeometryTaggedText(tokenizer); } catch (IOException e) { throw new ParseException(e.toString()); } }