def coords(self, coords): if coords is None: coords = [] elif len(coords) < 4: raise ValueError("Invalid list length. List should contain 4 tuples.") self._kml['coordinates'] = Coordinates() self._kml['coordinates'].addcoordinates(coords)
def __init__(self, coords=None): super(GxLatLonQuad, self).__init__() self._kml['coordinates'] = Coordinates() self.coords = coords