public static void setType(BytesWritable geomref, OGCType type) {
    geomref.getBytes()[SIZE_WKID] = (byte) type.getIndex();
  }
Sets the geometry type (in place) for the given hive geometry bytes
@param geomref reference to hive geometry bytes
@param type OGC geometry type
ql/src/java/org/apache/hadoop/hive/ql/udf/esri/GeometryUtils.java