MBR Transforms | Geospatial Data Types | Teradata Vantage - Transforms - 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ā„¢

Client applications can use a VARCHAR to insert a value into an MBR column. The VARCHAR must have the following format:

(xmin, ymin, xmax, ymax)

where white space can appear anywhere.

For queries that select data from an MBR column, the database returns the MBR data as a VARCHAR(256) using the same format (xmin, ymin, xmax, ymax).

Consider the following definition of a table that defines an MBR column.

CREATE TABLE sample_MBRs (skey INTEGER, shape_mbr MBR);

A query that selects data from the shape_mbr column results in the database returning the column data as a VARCHAR(256):

SELECT *
FROM sample_MBRs;

SKEY          SHAPE_MBR
--------      -------------
1001          (10, 3, 22, 7)