use of ch.interlis.iox_j.wkb.Wkb2iox in project ili2db by claeis.
the class PostgisColumnConverter method toIomMultiSurface.
@Override
public IomObject toIomMultiSurface(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);
}
}
use of ch.interlis.iox_j.wkb.Wkb2iox in project ili2db by claeis.
the class PostgisColumnConverter method toIomMultiCoord.
@Override
public IomObject toIomMultiCoord(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);
}
}
use of ch.interlis.iox_j.wkb.Wkb2iox in project ili2db by claeis.
the class PostgisColumnConverter method toIomPolyline.
@Override
public IomObject toIomPolyline(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
// String v=((org.postgresql.util.PGobject)geomobj).getValue();
// byte bv[]=WKBReader.hexToBytes(v);
Wkb2iox conv = new Wkb2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
}
}
use of ch.interlis.iox_j.wkb.Wkb2iox in project ili2db by claeis.
the class PostgisColumnConverter method toIomCoord.
@Override
public IomObject toIomCoord(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);
}
}
use of ch.interlis.iox_j.wkb.Wkb2iox in project ili2db by claeis.
the class PostgisColumnConverter method toIomMultiPolyline.
@Override
public IomObject toIomMultiPolyline(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
// String v=((org.postgresql.util.PGobject)geomobj).getValue();
// byte bv[]=WKBReader.hexToBytes(v);
Wkb2iox conv = new Wkb2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
}
}
Aggregations