Returns true if a geographic grid object contains a z coordinate (height or elevation), indicating a 3D grid.
Syntax
bool ST_HasZ(geomgrid gridcode);Parameters
| Parameter | Type | Description |
|---|---|---|
gridcode | geomgrid | The geographic grid object. |
Example
The following example checks whether the grid code GZ0026206440 contains a z coordinate:
SELECT ST_HasZ(ST_GridFromText('GZ0026206440'));Output:
st_hasz
---------
tSee also
ST_GridFromText— constructs a geographic grid object from a grid code string