@staticmethod
def saveXYFile(polyline, filename):
    """
        @type polyline: Polyline or list of tuple of (float, float)
        """
    with open(filename, 'w') as fileH:
        for p in polyline:
            fileH.write('%g %g\n' % (p[0], p[1]))
