public static void setWKID(BytesWritable geomref, int wkid) {
    ByteBuffer bb = ByteBuffer.allocate(4);
    bb.putInt(wkid);
    System.arraycopy(bb.array(), 0, geomref.getBytes(), 0, SIZE_WKID);
  }
Sets the WKID (in place) for the given hive geometry bytes

@param geomref reference to hive geometry bytes
@param wkid
ql/src/java/org/apache/hadoop/hive/ql/udf/esri/GeometryUtils.java