Export (0) Print
Expand All

STMLineFromWKB (geography Data Type)

Returns a geography MultiLineString instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.

Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database.

STMLineFromWKB ( 'WKB_multilinestring' , SRID )


Is the WKB representation of the geography MultiLineString instance to return. WKB_multilinestring is a varbinary(max) expression.


Is an int expression representing the spatial reference ID (SRID) of the geography MultiLineString instance you wish to return.

SQL Server return type: geography

CLR return type: SqlGeography

OGC type: MultiLineString

This method throws a FormatException if the input is not well-formatted.

The following example uses STMLineFromWKB() to create a geography instance.

DECLARE @g geography;
SET @g = geography::STMLineFromWKB(0x010500000002000000010200000005000000F4FDD478E9965EC0DD24068195D3474083C0CAA145965EC0508D976E12D3474083C0CAA145965EC04E62105839D44740F4FDD478E9965EC04E62105839D44740F4FDD478E9965EC0DD24068195D34740010200000005000000022B8716D9965EC0C1CAA145B6D34740022B8716D9965EC06ABC749318D447407593180456965EC06ABC749318D447407593180456965EC03333333333D34740022B8716D9965EC0C1CAA145B6D34740, 4326);
SELECT @g.ToString();
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft