All Products
Search
Document Center

ApsaraDB RDS:ST_GridLevelAsZ

Last Updated:Aug 02, 2023

This topic describes the ST_GridLevelAsZ function. This function converts the height of a geographic grid into an altitude.

Syntax

bigint ST_GridLevelAsZ(integer gridlevel, integer precision);

Parameters

Parameter

Description

gridlevel

The height of the geographic grid.

precision

The precision level of the geographic grid. Valid values: 1 to 32.

Description

This function calculates the altitude of the geographic grid from the bottom of the grid based on the height and precision level of the grid.

Examples

SELECT ST_GridLevelAsZ(1, 15);
 st_gridlevelasz 
------------------
1724.595652720891