Partager via


SqlGeography.STGeomFromWKB méthode (SqlBytes, Int32)

 

Retourne une instance SqlGeography à partir d’une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

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

Syntaxe

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public static SqlGeography STGeomFromWKB(
    SqlBytes wkbGeometry,
    int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
static SqlGeography^ STGeomFromWKB(
    SqlBytes^ wkbGeometry,
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STGeomFromWKB : 
        wkbGeometry:SqlBytes *
        srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Shared Function STGeomFromWKB (
    wkbGeometry As SqlBytes,
    srid As Integer
) As SqlGeography

Paramètres

  • srid
    Type: System.Int32

    Un int expression qui représente l’ID de référence spatiale (SRID) de la SqlGeography instance à retourner.

Valeur de retour

Type: Microsoft.SqlServer.Types.SqlGeography

Instance SqlGeography construite à partir de la représentation WKB spécifiée.

Notes

Le type OGC de le SqlGeography instance retournée par la STGeomFromText méthode est définie sur l’entrée WKB correspondante.

Cette méthode lève une exception FormatException si l’entrée n’est pas correctement mise en forme.

Voir aussi

SqlGeography classe
Microsoft.SqlServer.Types espace de noms

Retour au début