}
}
@Override
public void setValue(PreparedStatement st, int startIndex, Geometry value) throws SQLException {
WkbEncoder encoder = Wkb.newEncoder(Wkb.Dialect.POSTGIS_EWKB_1);
ByteBuffer buffer = encoder.encode(value, byteOrder);
int srid = value.getSRID();
// prepend srid into first 4 bytes
byte[] wkb = buffer.toByteArray();
byte[] bytes = new byte[wkb.length + 4];