17.10 - Result Rows - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Geospatial Data Types

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

The columns in the table that Tessellate_Search returns are as follows.

Column Name Data Type Description
out_key DECIMAL(18,0) A copy of the in_key input argument.

The data type of out_key matches the data type of the in_key argument.

cellid INTEGER The INTEGER value that is returned codes for the cell number and level. The upper 28 bits identifies the cell number, and the lower four bits identifies the level. Use:
cellid  / 16

to derive the cell number and:

cellid  MOD 16

to derive the level.

Cell IDs are numbered from left to right, 0 to n-1, where n = g_nx * g_ny. Cell 0 is in the lower left corner. Here is an example that shows the cell numbering of a single-level grid (of unspecified size) that contains 16 cells.