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

Last updated on FEBRUARY 08, 2017

Applies to:

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

Symptoms


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

ORA-13199: the given geometry cannot be rectified



Validation:

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:

update GEOM_TABLE
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

Cause

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