Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.91 KB

File metadata and controls

61 lines (46 loc) · 1.91 KB
title STMLineFromWKB (geometry Data Type)
description STMLineFromWKB (geometry Data Type)
author MladjoA
ms.author mlandzic
ms.date 08/03/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2024
f1_keywords
STMLineFromWKB (geometry Data Type)
STMLineFromWKB_TSQL
helpviewer_keywords
STMLineFromWKB (geometry Data Type)
dev_langs
TSQL

STMLineFromWKB (geometry Data Type)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]

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

Syntax

  
STMLineFromWKB ( 'WKB_multilinestring' , SRID )  

Arguments

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

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

Return Types

[!INCLUDEssNoVersion] return type: geometry

CLR return type: SqlGeometry

OGC type: MultiLineString

Remarks

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

Examples

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

DECLARE @g geometry;   
SET @g = geometry::STMLineFromWKB(0x0105000000020000000102000000020000000000000000005940000000000000594000000000000069400000000000006940010200000003000000000000000000084000000000000010400000000000001C40000000000000204000000000000024400000000000002440, 0);  
SELECT @g.STAsText();  

See Also

OGC Static Geometry Methods