'Returns the KML representation for the coordinates.'

@property
def kml(self):

    if self.hasz:
        substr = '%s,%s,%s    '
    else:
        substr = '%s,%s,0    '
    return ('<coordinates>%s</coordinates>' % ''.join([(substr % self[i]) for i in xrange(len(self))]).strip())
