def poly_from_box(W, E, N, S):
    """
        Helper function to create a counter-clockwise polygon
        from the given box.
        
        N, E, S, W are the extents of the box.
    """
    return [[W, N], [W, S], [E, S], [E, N]]