def create_wkt(polygon):
    """
    :param polygon: a single polygon in the format [(x1,y1), (x2,y2), ...]
    :returns: a wkt formatted string ready to be put into the json 
    """
    wkt = 'POLYGON (('

    for coords in polygon:
        wkt += "{} {},".format(coords[0], coords[1])

    wkt = wkt[:-1] + '))'

    return wkt