def _set_record(self): ph = PolygonHelper(self.polygon) self.polygon = ph.to_str() self.center = ph.get_center_str() th = TypeHelper(self.types) self.types = th.to_str() self.tids = th.get_tids_str() self.rid = ph.get_hash() + th.get_hash()