SqlGeometry.STTouches 方法 (SqlGeometry)

 

确定指定的 SqlGeometry 对象是否与当前 SqlGeometry 接触。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STTouches(
    SqlGeometry other
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlBoolean STTouches(
    SqlGeometry^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STTouches : 
        other:SqlGeometry -> SqlBoolean
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STTouches (
    other As SqlGeometry
) As SqlBoolean

参数

返回值

Type: System.Data.SqlTypes.SqlBoolean

如果一个 SqlGeometry 实例在空间上与另一个 SqlGeometry 实例接触,则返回 true。 否则,返回 false

备注

如果两个 SqlGeometry 实例的点集相交,但是它们的内部不相交,则表明这两个实例接触。

如果 null 实例的空间引用 ID (SRID) 不匹配,则此方法始终返回 SqlGeometry

另请参阅

SqlGeometry 类
Microsoft.SqlServer.Types 命名空间

返回页首