Compartir a través de


SqlGeography.STPointFromWKB (Método) (SqlBytes, Int32)

 

Devuelve una instancia de SqlGeography Point a partir de la representación Well-Known Binary (WKB) de Open Geospatial Consortium (OGC).

Espacio de nombres:   Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

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

Parámetros

  • srid
    Type: System.Int32

    Expresión int que representa el identificador de referencia espacial (SRID) de la instancia de SqlGeography Point que desea devolver.

Valor devuelto

Type: Microsoft.SqlServer.Types.SqlGeography

Valor SqlGeography construido a partir del WKB especificado.

Comentarios

Este método produce una excepción FormatException si la entrada no tiene el formato correcto.

Vea también

SqlGeography (Clase)
Microsoft.SqlServer.Types (Espacio de nombres)

Volver al principio