private void writeGeometry(Geometry geom, ByteBuffer output) { geom.accept(new WkbVisitor(output)); }