Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

STMLineFromWKB (geometry Data Type)


Applies To: SQL Server 2014, SQL Server 2016 Preview

Returns a geometry 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 geometry MultiLineString instance to return. WKB_multilinestring is a varbinary(max) expression.


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

SQL Server return type: geometry

CLR return type: SqlGeometry

OGC type: MultiLineString

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

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

DECLARE @g geometry; 
SET @g = geometry::STMLineFromWKB(0x0105000000020000000102000000020000000000000000005940000000000000594000000000000069400000000000006940010200000003000000000000000000084000000000000010400000000000001C40000000000000204000000000000024400000000000002440, 0);
SELECT @g.STAsText();
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft