名称

ST_RastFromHexWKB — 从 Well-Known Binary (WKB) 栅格的十六进制表示形式返回一个栅格值。

语法

raster ST_RastFromHexWKB(text wkb);

说明

给定十六进制表示形式的 Well-Known Binary (WKB) 栅格,返回一个栅格。

可用性:2.5.0

示例

SELECT (ST_Metadata(
    ST_RastFromHexWKB(
        '010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400'
    )
)).* AS metadata;

 upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy | srid | numbands
------------+------------+-------+--------+--------+--------+-------+-------+------+----------
        0.5 |        0.5 |    10 |     20 |      2 |      3 |     0 |     0 |   10 |        0
                

另请参阅

ST_MetaDataST_RastFromWKBST_AsBinary/ST_AsWKBST_AsHexWKB