Result Rows - Advanced SQL Engine - Teradata Database

Geospatial Data Types

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
vci1556127188517.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1181
lifecycle
previous
Product Category
Teradata Vantageā„¢

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.

VARCHAR(32)
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.