SqlGeometry.STCentroid 方法 ()
返回由一个或多个多边形组成的 SqlGeometry 实例的几何中心。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry STCentroid()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlGeometry^ STCentroid()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STCentroid : unit -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STCentroid As SqlGeometry
返回值
Type: Microsoft.SqlServer.Types.SqlGeometry
一个 SqlGeometry 对象,该对象表示调用 SqlGeometry 的几何中心。
备注
STCentroid 返回 null if SqlGeometry 实例不是多边形或 MultiPolygon 类型。
另请参阅
SqlGeometry 类
Microsoft.SqlServer.Types 命名空间
返回页首