Share via


SqlGeometry.STGeomCollFromWKB, méthode (SqlBytes, Int32)

 

Retourne une instance de collection SqlGeometry à 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 SqlGeometry STGeomCollFromWKB(
    SqlBytes wkbGeometryCollection,
    int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
static SqlGeometry^ STGeomCollFromWKB(
    SqlBytes^ wkbGeometryCollection,
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STGeomCollFromWKB : 
        wkbGeometryCollection:SqlBytes *
        srid:int -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Shared Function STGeomCollFromWKB (
    wkbGeometryCollection As SqlBytes,
    srid As Integer
) As SqlGeometry

Paramètres

  • srid
    Type: System.Int32

    Expression entière qui représente l'ID de référence spatial (SRID) de l'instance SqlGeometry à retourner.

Valeur de retour

Type: Microsoft.SqlServer.Types.SqlGeometry

Collection SqlGeometry construite à partir de la représentation WKB spécifiée.

Notes

Le type OGC de le SqlGeometry instance retourné par STGeomCollFromWKB a la valeur GeomCollection, MultiPolygon, MultiLineString ou MulitPoint, selon l’entrée WKB correspondante.

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

Ce membre est static.

Voir aussi

SqlGeometry, classe
Microsoft.SqlServer.Types, espace de noms

Retour au début