ST_HasZ

更新时间: 2026-03-28 12:27:33

Returns true if a geographic grid object contains the z height dimension, false otherwise. Use this function to determine whether a grid object includes Z dimension data.

Syntax

bool ST_HasZ(geomgrid gridcode);

Parameters

ParameterDescription
gridcodeThe geographic grid object.

Examples

The following example checks whether the grid GZ0026206440 contains a z height dimension. The result t indicates that it does.

SELECT ST_HasZ(ST_GridFromText('GZ0026206440'));
 st_hasz
---------
 t

See also

  • ST_GridFromText

上一篇: ST_GridLevelAsZ 下一篇: ST_Level
阿里云首页 云原生数据库 PolarDB 相关技术圈