Converts a geographic grid level into an altitude, measured from the bottom of the grid cell.
Syntax
bigint ST_GridLevelAsZ(integer gridlevel, integer precision);Parameters
| Parameter | Description |
|---|---|
gridlevel | The height level of the geographic grid. |
precision | The precision level of the geographic grid. Valid values: 1 to 32. |
Description
ST_GridLevelAsZ returns the altitude of the bottom face of a geographic grid cell identified by its height level and precision level.
Examples
Return the altitude for grid level 1 at precision 15:
SELECT ST_GridLevelAsZ(1, 15);Output:
st_gridlevelasz
------------------
1724.595652720891