SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT Reporting ORA-13367 On Valid Polygons (Doc ID 1626637.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Spatial and Graph - Version and later
Information in this document applies to any platform.


The geometries are compound polygons oriented counter-clockwise which is correct
These are valid geometries

Oracle reports error:

ORA-13367: wrong orientation for interior/exterior rings
Cause: In an Oracle Spatial geometry, the exterior and/or interior rings are not oriented correctly.
Action: Be sure that the exterior rings are oriented counterclockwise and the interior rings are oriented clockwise.

When they are valid geometries

RECTIFY_GEOMETRY would validate them but there should not be a need to run them through RECTIFY_GEOMETRY


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms