All Products
Search
Document Center

ApsaraDB RDS:ST_GridFromBinary

Last Updated:Mar 28, 2026

Converts a grid from a binary (bytea) structure into a GeomGrid structure.

Syntax

geomgrid ST_GridFromBinary(bytea binary)

Parameters

ParameterDescription
binaryThe binary structure of the grid to convert.

Examples

SELECT ST_AsText(
  ST_GridFromBinary('\x01010c0f74271236'));

Output:

    st_astext
------------------
 G001310322230230