共用方式為


SpatialTessellationFunction.Geodetic 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Returns the grid cell for the given SqlGeography instance.

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

語法

'宣告
<SqlFunctionAttribute(FillRowMethodName := "FillRow")> _
Public Shared Function Geodetic ( _
    geography As SqlGeography, _
    cardinality As Integer, _
    maxDepth As Integer, _
    options As Integer, _
    distanceBuffer As SqlDouble _
) As IEnumerable
'用途
Dim geography As SqlGeography 
Dim cardinality As Integer 
Dim maxDepth As Integer 
Dim options As Integer 
Dim distanceBuffer As SqlDouble 
Dim returnValue As IEnumerable 

returnValue = SpatialTessellationFunction.Geodetic(geography, _
    cardinality, maxDepth, options, distanceBuffer)
[SqlFunctionAttribute(FillRowMethodName = "FillRow")]
public static IEnumerable Geodetic(
    SqlGeography geography,
    int cardinality,
    int maxDepth,
    int options,
    SqlDouble distanceBuffer
)
[SqlFunctionAttribute(FillRowMethodName = L"FillRow")]
public:
static IEnumerable^ Geodetic(
    SqlGeography^ geography, 
    int cardinality, 
    int maxDepth, 
    int options, 
    SqlDouble distanceBuffer
)
[<SqlFunctionAttribute(FillRowMethodName = "FillRow")>]
static member Geodetic : 
        geography:SqlGeography * 
        cardinality:int * 
        maxDepth:int * 
        options:int * 
        distanceBuffer:SqlDouble -> IEnumerable
public static function Geodetic(
    geography : SqlGeography, 
    cardinality : int, 
    maxDepth : int, 
    options : int, 
    distanceBuffer : SqlDouble
) : IEnumerable

參數

  • cardinality
    型別:System.Int32
    The number that represents the maximum cells in tessellation output.
  • options
    型別:System.Int32
    The value that contains bitwise options for interval mode, coverage generation, and fuzz usage.

傳回值

型別:System.Collections.IEnumerable
The IEnumerable object that represents the grid cell for the given SqlGeography instance.

請參閱

參考

SpatialTessellationFunction 類別

Microsoft.SqlServer.Types 命名空間