Returns the altitude of a geographic grid cell measured from the bottom of the grid, given a height level and precision.
Syntax
bigint ST_GridLevelAsZ(integer gridlevel, integer precision)Parameters
| Parameter | Description |
|---|---|
gridlevel | The height level of the geographic grid cell. |
precision | The precision level of the geographic grid. Valid values: 1–32. |
Description
ST_GridLevelAsZ computes the altitude of a geographic grid cell from the bottom of the grid, based on the cell's height level and precision. The return value is a bigint.
Examples
SELECT ST_GridLevelAsZ(1, 15);Output:
st_gridlevelasz
------------------
1724.595652720891该文章对您有帮助吗?