Error: ORA-20085: Insert Spatial Reference SRID 7 does not match

文章编号 : 35958
软件: ArcSDE 9.2, 9.3, 9.3.1
操作系统: N/A
已邀请:

EsriSupport

赞同来自:

错误信息:
使用st_transform函数将一个存在空间索引的st_geometry类型的要素类从一个空间引用转换到另外一个空间引用时会遇到以下错误: ORA-29877: failed in the execution of the ODCIINDEXUPDATE routine ORA-20085: Insert Spatial Reference SRID 7 does not match 下面例子示例了整个错误调用栈: SDL> UPDATE parcels SET shape = sde.st_transform(shape,7);
* ERROR at line 1: ORA-29877: failed in the execution of the ODCIINDEXUPDATE routine ORA-20085: Insert Spatial Reference SRID 7 does not match TB.PARCELS.SHAPE registered Spatial Reference SRID 6 ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1413 ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1740
原因:
使用st_transform函数针对存在空间索引的st_geometry类型的要素类做空间引用转换失败,因为该操作试图使用一个与该要素类的空间索引的空间引用标识不一致的新的空间引用标识来更新该要素类的空间信息及空间索引。

解决方法:
更新st_geometry类型的要素类之前删除其空间索引 SQL> DROP INDEX parcels_shape_idx; Index dropped. 然后,使用st_transform函数执行空间引用转换 SQL> UPDATE parcels SET shape = sde.st_transform(shape,5); 最后,重新创建空间索引


创建时间:2008-12-10
最近更新: 2011-05-03


原文链接
http://support.esrichina.com.c ... .html

要回复问题请先登录注册