ST_GridLevelAsZ

更新时间:
复制 MD 格式

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

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