Returns an ST_LineString value, which is transformed from a LONG BINARY value containing the Well Known Binary (WKB) representation of an ST_LineString
[DBO.]ST_LineFromWKB(wkb[, srid])
Name | Type | Description |
---|---|---|
wkb |
LONG BINARY |
The WKB representation. |
srid |
INT |
The SRID of the result. If not specified, the default is 0. |
ST_LineString Returns an ST_LineString value created from the input string.
The spatial reference system identifier of the result is the given by parameter srid.
The ST_LineFromWKB function is equivalent to the following:
CREATE FUNCTION DBO.ST_LineFromWKB( wkb LONG BINARY, srid INT DEFAULT 0 ) RETURNS ST_LineString BEGIN DECLARE geo ST_Geometry; set geo = ST_Geometry::ST_GeomFromWKB( wkb, srid ); RETURN CAST( geo AS ST_LineString); END |
The ST_LineFromWKB function is not present by default in newly created databases. Use the sa_install_feature system procedure to install the spatial SQL compatibility functions. See sa_install_feature system procedure.
SQL/MM (ISO/IEC 13249-3: 2006) 7.2.9
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |