Oracle Error ORA-13343: a polygon geometry has fewer than four coordinates

Oracle Error Message

ORA-13343: a polygon geometry has fewer than four coordinates

Reason for the Error

A geometry, specified as being a polygon, has fewer than four coordinates in its definition.

Solution

A polygon must consist of at least four distinct coordinates. Correct the geometric definition, or set the appropriate SDO_GTYPE or SDO_ETYPE attribute for this geometry.