My Oracle Support Banner

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

Last updated on MARCH 06, 2019

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




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.