ST_GridLevelAsZ

更新时间:
复制 MD 格式

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

ParameterDescription
gridlevelThe height level of the geographic grid cell.
precisionThe 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