ST_WKTtoWKB function

The WKTtoWKB function takes a well-known-text (WKT) representation of a geography and returns the corresponding geometry in a well-known-binary (WKB) format.

If the given well-known text representation is null, then null is returned.

The ST_WKTtoWKB function gives the same result as ST_AsText(ST_GeomFromBinary()).

Syntax

Read syntax diagramSkip visual syntax diagram db2gse.ST_WKTtoWKB ( geometry ,srsId )

Parameter

geometry
A value of type CLOB(2G) that contains the WKT representation of the geometry to be converted.
srsId
A value of type INTEGER that uniquely identifies the spatial reference system.

Return type

Returns a type BLOB(2G) that contains the WKB representation of a geometry object.