Partager via


Méthode SpatialGridCoverage.Planar

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Returns the grid cell for the given SqlGeometry instance.

Espace de noms :  Microsoft.SqlServer.Types
Assembly :  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Syntaxe

'Déclaration
<SqlFunctionAttribute(FillRowMethodName := "FillRow")> _
Public Shared Function Planar ( _
    geometry As SqlGeometry, _
    rootX As Double, _
    rootY As Double, _
    maxX As Double, _
    maxY As Double, _
    rows As Integer, _
    columns As Integer _
) As IEnumerable
'Utilisation
Dim geometry As SqlGeometry 
Dim rootX As Double 
Dim rootY As Double 
Dim maxX As Double 
Dim maxY As Double 
Dim rows As Integer 
Dim columns As Integer 
Dim returnValue As IEnumerable 

returnValue = SpatialGridCoverage.Planar(geometry, _
    rootX, rootY, maxX, maxY, rows, columns)
[SqlFunctionAttribute(FillRowMethodName = "FillRow")]
public static IEnumerable Planar(
    SqlGeometry geometry,
    double rootX,
    double rootY,
    double maxX,
    double maxY,
    int rows,
    int columns
)
[SqlFunctionAttribute(FillRowMethodName = L"FillRow")]
public:
static IEnumerable^ Planar(
    SqlGeometry^ geometry, 
    double rootX, 
    double rootY, 
    double maxX, 
    double maxY, 
    int rows, 
    int columns
)
[<SqlFunctionAttribute(FillRowMethodName = "FillRow")>]
static member Planar : 
        geometry:SqlGeometry * 
        rootX:float * 
        rootY:float * 
        maxX:float * 
        maxY:float * 
        rows:int * 
        columns:int -> IEnumerable
public static function Planar(
    geometry : SqlGeometry, 
    rootX : double, 
    rootY : double, 
    maxX : double, 
    maxY : double, 
    rows : int, 
    columns : int
) : IEnumerable

Paramètres

  • rootX
    Type : System.Double
    The x-coordinate of the lower-left corner of the bounding box.
  • rootY
    Type : System.Double
    The y-coordinate of the lower-left corner of the bounding box.
  • maxX
    Type : System.Double
    The x-coordinate of the upper-right corner of the bounding box.
  • maxY
    Type : System.Double
    The y-coordinate of the upper-right corner of the bounding box.
  • columns
    Type : System.Int32
    The number of columns in the grid.

Valeur de retour

Type : System.Collections.IEnumerable
The IEnumerable object that represents the grid cell of the SqlGeometry instance.

Voir aussi

Référence

SpatialGridCoverage Classe

Espace de noms Microsoft.SqlServer.Types