code: private static Geometry parseWkt(String wkt) throws WktException {
  		if (wkt != null) {
  			int i1 = wkt.indexOf('(');
  			int i2 = wkt.indexOf(' ');
  			// allow both '(' and ' ('
  			int i = Math.min(i1, i2);
  			if (i < 0) {
  				i = (i1 > 0 ? i1 : i2);
  			}
  			String type = null;
  			if (i >= 0) {
  				type = typeWktToGeom(wkt.substring(0, i).trim());
  			}
  			if (type == null) {
  				throw new WktException(ERR_MSG + "type of geometry not supported");
  			}
  			if (wkt.indexOf("EMPTY") >= 0) {
  				return new Geometry(type, 0, 0);
  			}
  			Geometry geometry = new Geometry(type, 0, 0);
  			String result = parse(wkt.substring(wkt.indexOf('(')), geometry);
  			if (result.length() != 0) {
  				throw new WktException(ERR_MSG + "unexpected ending \"" + result + "\"");
  			}
  			return geometry;
  		}
  		throw new WktException(ERR_MSG + "illegal argument; no WKT");
  	}
docs: Parse a WKT string. No EWKT here!