All Products
Search
Document Center

PolarDB:ST_H3FromBinary

Last Updated:Mar 28, 2026

Converts the binary representation of an H3Grid object (a bytea value) into an h3grid data type.

Syntax

h3grid ST_H3FromBinary(bytea binary);

Parameters

ParameterDescription
binaryThe binary representation of an H3Grid object. The value must be of the bytea type.

Examples

SELECT ST_H3FromBinary('\x010100ffff9f6826a18408');

Output:

    st_h3frombinary
------------------------
 010100FFFF9F6826A18408