使用ST_Transform时报“ORA-20603: Spatial References are not compatible”

接到一用户的问题,再使用ST_Transform时报“ORA-20603: Spatial References are not compatible”。

查看ST_Transform时有一个关键的地方:

 


SRIDs 102 and 105 have to exist in the ST_SPATIAL_REFERENCES view, and both must have the same geographic datum.”

也就是说,在实现转换的过程中,两个投影文件必须要有一样的椭球体。



我们查看st_spatial_references表中的SRID信息

 

 

我们进行相关测试

 

 

56 GCS_Beijing_1954

30 Xian_1980_3_Degree_GK_CM_105E

椭球体不一致

 

 

 

 


 7 Unknown_CoordSys

 8 GCS_WGS_1984

——————————

 59 GCS_Xian_1980

椭球体不一致

 

 

凡是出现该错误的都是相关的椭球体(datum)不一致造成的

转载自:https://blog.csdn.net/linghe301/article/details/6409135

You may also like...

退出移动版