Oracle Error ORA-13366: invalid combination of interior exterior rings

Oracle Error Message

ORA-13366: invalid combination of interior exterior rings

Reason for the Error

In an Oracle Spatial geometry, interior and exterior rings are not used consistently.

Solution

Make sure that the interior rings corresponding to an exterior ring follow the exterior ring in the ordinate array.