public static Geometry readGeometriesFromWKTString(String wkt, GeometryFactory geomFact)
throws ParseException, IOException
{
WKTReader reader = new WKTReader(geomFact);
WKTFileReader fileReader = new WKTFileReader(new StringReader(wkt), reader);
List geomList = fileReader.read();
if (geomList.size() == 1)
return (Geometry) geomList.get(0);
// TODO: turn polygons into a GC