Calculate the polygon/line is correct