public static int getWKID(BytesWritable geomref) {
    ByteBuffer bb = ByteBuffer.wrap(geomref.getBytes());
    return bb.getInt(0);
  }
Gets the WKID for the given hive geometry bytes

@param geomref reference to hive geometry bytes
@return WKID set in the first 4 bytes of the hive geometry bytes
ql/src/java/org/apache/hadoop/hive/ql/udf/esri/GeometryUtils.java