public MultiLineString(String value) throws SQLException { this(); value = value.trim(); if (value.indexOf("MULTILINESTRING") == 0) { PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value.substring(15).trim()), ','); int nlines = t.getSize(); subgeoms = new LineString[nlines]; for (int p = 0; p < nlines; p++) { subgeoms[p] = new LineString(t.getToken(p)); } dimension = subgeoms[0].dimension; } else { throw new SQLException("postgis.multilinestringgeometry"); }
public MultiLineString() { super(MULTILINESTRING);
    public MultiLineString(String value) throws SQLException {        this();        value = value.trim();        if (value.indexOf("MULTILINESTRING") == 0) {            PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value.substring(15).trim()), ',');            int nlines = t.getSize();            subgeoms = new LineString[nlines];            for (int p = 0; p < nlines; p++) {                subgeoms[p] = new LineString(t.getToken(p));            }            dimension = subgeoms[0].dimension;        } else {            throw new SQLException("postgis.multilinestringgeometry");        }    }