The linearRing input is not valid because there are not enough points in the input. A linearRing must have at least 4 points, ...