code: public static void setType(BytesWritable geomref, OGCType type){
  		geomref.getBytes()[SIZE_WKID] = (byte) type.getIndex();
  	}
docs: Sets the geometry type (in place) for the given hive geometry bytes
  @param geomref reference to hive geometry bytes
  @param type OGC geometry type