My Oracle Support Banner

ORA-13199 The Given Geometry Cannot Be Rectified (Doc ID 1340764.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Spatial - Version and later
Information in this document applies to any platform.
***Checked for relevance on 24-Jun-2013***


Trying to validate a geometry, Sdo_Util.Rectify_Geometry gives error:

ORA-13199: the given geometry cannot be rectified


select s.ID,  mdsys.sdo_geom.validate_geometry_with_context(s.PRODUCT_GEOMETRY,m.diminfo) as aa
from GEOM_TABLE s, mdsys.user_sdo_geom_metadata m
where m.table_name = 'GEOM_TABLE' and m.column_name = 'GEOMETRY'
and s.ID=1;

ID          AA
----------  -----------------------------------------------------------------
1           13349 [Element <1>] [Ring <1>][Edge <9>][Edge <11>]

And when trying to fix the problem with the geometry, get the following error:

set GEOMETRY = sdo_util.rectify_geometry(GEOMETRY,0.005)
where id = 1;
ERROR at line 2:
ORA-13199: the given geometry cannot be rectified
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 17
ORA-06512: at "MDSYS.SDO_UTIL", line 765


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.