ORA-13037: SRIDs do not match for the two geometries

文档解释

ORA-13037: SRIDs do not match for the two geometries

Cause: A Spatial operation is invoked with two geometries where one geometry has an SRID and the other geometry does not have an SRID.

Action: Make sure that the spatial operations are invoked between two geometries with compatible SRIDs.

ORA-13037: SRIDs do not match for the two geometries:

这是一个ORACLE Spatial错误,指定的空间参照系统(SRID)号码不匹配。Oracle Spatial需要SRID号码(Spatial Reference Identifier)来标识两个几何位置之间的空间关系。它们必须匹配,才能获得正确的结果。

官方解释

Error at Line:, Column:

ORA-13037: SRIDs do not match for the two geometries

Cause: A spatial operation was attempted between two geometries with different Spatial Reference Identifiers (SRIDs).

Action: Make sure that geometry objects used in a spatial operation are associated with the same SRID.

常见案例

ORA-13037:SRIDs不匹配的两个几何位置是一个空间操作的操作,它涉及到不同的空间参考标识(SRID)。例如,假设Oracle Spatial中存在两个几何位置,其中一个带有SRID 999,另一个带有SRID 1,则Oracle会抛出ORA-13037错误。

正常处理方法及步骤

1、首先检查两个几何位置的SRID号码,以及它们之间是否匹配。

2、如果 SRID不匹配,请尝试使用SDO_GEOM.TRANSFORM()函数将SRID转换为期望值。

3、另外,请尝试使用SDO_GEOM.VALIDATE_GEOMETRY()函数验证空间几何位置,以确保其正确性。

你可能感兴趣的