All Products
Search
Document Center

PolarDB:ST_HasZ

Last Updated:Mar 28, 2026

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