def center_point(self): centerLat = (self.ulLat + self.urLat + self.lrLat + self.llLat) / 4 centerLon = (self.ulLon + self.urLon + self.lrLon + self.llLon) / 4 return '(' + to_lat_lon_str(centerLat, centerLon) + ')'
def __unicode__(self): return '(' + to_lat_lon_str(self.ulLat, self.ulLon) + '); ' + \ '(' + to_lat_lon_str(self.urLat, self.urLon) + '); ' + \ '(' + to_lat_lon_str(self.lrLat, self.lrLon) + '); ' + \ '(' + to_lat_lon_str(self.llLat, self.llLon) + ');'