public static OGCType getType(BytesWritable geomref) {
    // SIZE_WKID is the offset to the byte that stores the type information
    return OGCTypeLookup[geomref.getBytes()[SIZE_WKID]];
  }
Gets the geometry type for the given hive geometry bytes

@param geomref reference to hive geometry bytes
@return OGCType set in the 5th byte of the hive geometry bytes
ql/src/java/org/apache/hadoop/hive/ql/udf/esri/GeometryUtils.java