def filter_coords(coords):
    """
    Remove duplicate coordinates in LineString data; preserve coordinate ordering.
    """

    unique = []
    [unique.append(item) for item in coords if item not in unique]

    return unique