use of org.jkiss.dbeaver.ext.hana.model.data.wkb.HANAWKBParserException in project dbeaver by serge-rider.
the class HANAGeometryValueHandler method fetchColumnValue.
@Override
protected Object fetchColumnValue(DBCSession session, JDBCResultSet resultSet, DBSTypedObject type, int index) throws DBCException, SQLException {
byte[] wkb = resultSet.getBytes(index);
if (wkb == null) {
return null;
}
HANAWKBParser parser = new HANAWKBParser();
try {
Geometry g = parser.parse(wkb);
return new DBGeometry(g);
} catch (HANAWKBParserException e) {
throw new DBCException(e, session.getExecutionContext());
}
}
use of org.jkiss.dbeaver.ext.hana.model.data.wkb.HANAWKBParserException in project dbeaver by dbeaver.
the class HANAGeometryValueHandler method fetchColumnValue.
@Override
protected Object fetchColumnValue(DBCSession session, JDBCResultSet resultSet, DBSTypedObject type, int index) throws DBCException, SQLException {
byte[] wkb = resultSet.getBytes(index);
if (wkb == null) {
return null;
}
HANAWKBParser parser = new HANAWKBParser();
try {
Geometry g = parser.parse(wkb);
return new DBGeometry(g);
} catch (HANAWKBParserException e) {
throw new DBCException(e, session.getExecutionContext());
}
}
Aggregations