def process_to_utm(self, force=False): """ Memproses lat/lon menjadi x, y, zone & hem Harus dipanggil sebelum menggunakan fungsi-fungsi yang ada dalam subclass """ if (force == False) and self.processed_to_utm: return False flag = False try: self.zone, self.hem = utm.get_zone_hem(self.lat, self.lon) self.x, self.y = utm.convert_to_utm(self.lat, self.lon) flag = True self.processed_to_utm = True except Exception as ex: print 'Exception: process_to_utm -->', ex return flag
def compute_middle_latlon(self): """menghitung koordinat di tengah2 grup emisi""" self.lat = (self.ll_lat + self.tr_lat) / 2 self.lon = (self.ll_lon + self.tr_lon) / 2 self.zone, self.hem = utm.get_zone_hem(self.lat, self.lon)