ST_GridFromBinary

更新时间: 2026-03-28 18:58:11

Converts a grid from its binary structure into a GeomGrid object.

Syntax

geomgrid ST_GridFromBinary(bytea binary)

Parameters

ParameterDescription
binaryThe binary structure of the grid that you want to convert.

Example

The following example converts a binary-encoded grid back to a GeomGrid value and returns it as text.

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

Output:

    st_astext
------------------
 G001310322230230
上一篇: ST_GridFromText 下一篇: ST_H3FromText
阿里云首页 云原生数据库 PolarDB 相关技术圈