def write(self,dcfile): firstpoint = self.lines[0] lastpoint = self.lines[-1] if firstpoint != lastpoint : print "WARNING: First and last point of polyline unequal" shape.write(self,dcfile)
def write(self,dcfile): self.lines = self.makelines() shape.write(self, dcfile)