if len(coords.shape) != 2 or coords.shape[1] != 2:
        raise ValueError("Wrong shape for polygon area input (expect (n,2)): {}".format(
            coords.shape))