Oracle Error ORA-13367: wrong orientation for interior/exterior rings

Oracle Error Message

ORA-13367: wrong orientation for interior/exterior rings

Reason for the Error

In an Oracle Spatial geometry, the exterior and/or interior rings are not oriented correctly.

Solution

Be sure that the exterior rings are oriented counterclockwise and the interior rings are oriented clockwise.