STMPolyFromWKB(geometry 데이터 형식)
OGC(Open Geospatial Consortium) WKB(Well-Known Binary) 표현의 geometryMultiPolygon 인스턴스를 반환합니다.
구문
STMPolyFromWKB ( 'WKB_multipolygon' , SRID )
인수
WKB_multipolygon
반환할 geometryMultiPolygon 인스턴스의 WKB 표현입니다. WKB_multipolygon은 varbinary(max) 식입니다.SRID
반환할 geometryMultiPolygon 인스턴스의 SRID(Spatial Reference ID)를 나타내는 int 식입니다.
반환 형식
SQL Server 반환 형식: geometry
CLR 반환 형식: SqlGeometry
OGC 형식: MultiPolygon
예
다음 예에서는 STMPolyFromWKB()를 사용하여 geometry 인스턴스를 만듭니다.
DECLARE @g geometry;
SET @g = geometry::STMPolyFromWKB(0x0106000000020000000103000000010000000400000000000000000014400000000000001440000000000000244000000000000014400000000000002440000000000000244000000000000014400000000000001440010300000001000000050000000000000000002440000000000000244000000000000059400000000000002440000000000000694000000000000069400000000000003E400000000000003E4000000000000024400000000000002440, 0);
SELECT @g.STAsText();