PolarDB-O 云原生数据库 ST_AsBinary

By | 2021年4月22日

将一个网格对象转换为二进制结构。

语法

bytea ST_AsBinary(geomgrid    grid)

参数

参数名称 描述
grid 需要输出的网格对象。

示例

with g as (
select unnest(st_asgridcode(
    ST_geomfromtext('POINT(116.31522216796875 39.910277777777778)',4490), 15)) as grid) 
select ST_asBinary(grid) from g; 
   
   st_asbinary     
--------------------
 \x01010c0f74271236

请关注公众号获取更多资料

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Iconic One Theme | Powered by Wordpress