Share via


SqlGeography.STGeomCollFromWKB-Methode (SqlBytes, Int32)

 

Gibt eine GeometryCollection-Instanz aus einer Open Geospatial-Konsortium (OGC) Well-Known binary (WKB)-Darstellung zurück.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

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

Parameter

  • wkbGeometryCollection
    Type: System.Data.SqlTypes.SqlBytes

    Die WKT-Darstellung der GeometryCollection-Instanz an, die Sie zurückgeben möchten.

  • srid
    Type: System.Int32

    Ein int-Ausdruck, der den SRID (Spatial Reference ID) der GeometryCollection-Instanz darstellt, die Sie zurückgeben möchten.

Rückgabewert

Type: Microsoft.SqlServer.Types.SqlGeography

Ein aus der angegebenen WKB-Geometrieauflistung erstellter SqlGeography-Wert.

Hinweise

Der OGC-Typ der SqlGeography zurückgegebene Instanz STGeomCollFromWKB GeometryCollection, MultiPolygon, MultiLineString oder MultiPoint, je nach der entsprechenden WKB-Eingabe festgelegt ist.

Diese Methode löst eine FormatException aus, wenn die Eingabe nicht korrekt formatiert ist.

Siehe auch

SqlGeography-Klasse
Microsoft.SqlServer.Types-Namespace

Zurück zum Anfang