public Polygon(String value) throws SQLException { this(); value = value.trim(); if (value.indexOf("POLYGON") == 0) { value = value.substring(7).trim(); } PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value), ','); int nrings = t.getSize(); subgeoms = new LinearRing[nrings]; for (int r = 0; r < nrings; r++) { subgeoms[r] = new LinearRing(t.getToken(r)); } dimension = subgeoms[0].dimension;
public Polygon() { super(POLYGON);
    public Polygon(String value) throws SQLException {        this();        value = value.trim();        if (value.indexOf("POLYGON") == 0) {            value = value.substring(7).trim();        }        PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value), ',');        int nrings = t.getSize();        subgeoms = new LinearRing[nrings];        for (int r = 0; r < nrings; r++) {            subgeoms[r] = new LinearRing(t.getToken(r));        }        dimension = subgeoms[0].dimension;    }