This topic describes the ST_TextureFromText function. This function constructs a texture object from the well-known text (WKT) representation of the object.

Syntax

texture ST_TextureFromText(text text);

Parameters

ParameterDescription
textThe texture object in WKT representation.

Description

The function constructs a texture object from the WKT representation of the object. For more information, see ST_MakeTexture.

Examples

SELECT ST_AsText(ST_TextureFromText(ST_AsText(ST_MakeTexture(256,256, '123456'::bytea))));

------------------------------------------------------------------------------
 {"compressionType" : "None", "format" : "JPEG", "wrap" : "Wrap", "type" : "Raw", "depth" : 3, "width" : 256, "height" : 256, "size" : 6, "data" : "313233343536"}