读写wkb
public void test(Geometry geometry){
//指定要包含srid的输出,不然默认构造函数不会写srid到wkb
WKBWriter wkbWriter = new WKBWriter(geometry.getDimension(), true);
//写wkb
final byte[] write = wkbWriter.write(geometry);
//读取wkb
Geometry ttt = new WKBReader().read(write);
}