Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
ST_AsBinary 函数返回表示几何的二进制字符串。输出格式是由 OGC SFS 1.1 定义的 WKB。此格式不包含 Z 和 M 值。
ST_AsBinary(geometry-expression)
BINARY 返回 geometry-expression 的 WKB 表示。
SQL/MM (ISO/IEC 13249-3: 2006) 5.1.37
以下示例返回结果 0x0101000000000000000000f03f0000000000000040。
0x0101000000000000000000f03f0000000000000040
select ST_AsBinary(ST_Point(1.0, 2.0, 4326))
以下示例返回结果 0x0101000000000000000000f03f0000000000000040。将几何转换为 BINARY 时,服务器隐式调用 ST_AsBinary() 函数。
select cast(ST_Point(1.0, 2.0, 4326) as binary(50))