STMPolyFromWKB (geometry Data Type)
Returns a geometryMultiPolygon instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
STMPolyFromWKB ( 'WKB_multipolygon' , SRID )
Argumenty
WKB_multipolygon
Is the WKB representation of the geometryMultiPolygon instance you wish to return.WKB_multipolygon is a varbinary(max) expression.SRID
Is an int expression representing the spatial reference ID (SRID) of the geometryMultiPolygon instance you wish to return.
Zwracane typy
SQL Server typ zwrotny: geometry
Zwracany typ CLR: SqlGeometry
Typ OGC: MultiPolygon
Przykłady
W poniższym przykładzie użyto STMPolyFromWKB() Aby utworzyć geometry wystąpienie:
DECLARE @g geometry;
SET @g = geometry::STMPolyFromWKB(0x0106000000020000000103000000010000000400000000000000000014400000000000001440000000000000244000000000000014400000000000002440000000000000244000000000000014400000000000001440010300000001000000050000000000000000002440000000000000244000000000000059400000000000002440000000000000694000000000000069400000000000003E400000000000003E4000000000000024400000000000002440, 0);
SELECT @g.STAsText();