Search in sources :

Example 6 with Wkb2iox

use of ch.interlis.iox_j.wkb.Wkb2iox in project ili2db by claeis.

the class PostgisColumnConverter method toIomSurface.

@Override
public IomObject toIomSurface(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
    byte[] bv = (byte[]) geomobj;
    Wkb2iox conv = new Wkb2iox();
    try {
        return conv.read(bv);
    } catch (ParseException e) {
        throw new ConverterException(e);
    }
}
Also used : ConverterException(ch.ehi.ili2db.converter.ConverterException) ParseException(com.vividsolutions.jts.io.ParseException) Wkb2iox(ch.interlis.iox_j.wkb.Wkb2iox)

Aggregations

ConverterException (ch.ehi.ili2db.converter.ConverterException)6 Wkb2iox (ch.interlis.iox_j.wkb.Wkb2iox)6 ParseException (com.vividsolutions.jts.io.ParseException)6