SqlGeography.STArea 方法

Returns the total surface area of a SqlGeography instance.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlDouble STArea()

傳回值

型別:System.Data.SqlTypes.SqlDouble
A SqlDouble value specifying the total surface area. STArea will return 0 if a SqlGeography instance contains only 0- and 1-dimensional figures, or if it is empty.

備註

Results for STArea are returned in the square of the unit of measure used by the spatial reference identifier of the geography instance; for example, if the SRID of the instance is 4326, STArea returns results in square meters.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間