Example: Exporting Geometry Data as CLOB in WKT Format - Advanced SQL Engine - Teradata Database

Geospatial Data Types

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
ufo1590694251930.ditamap
dita:ditavalPath
ufo1590694251930.ditaval
dita:id
B035-1181
lifecycle
previous
Product Category
Teradata Vantageā„¢

Consider the following definition of a table that defines an ST_Geometry column for representing ST_Point values.

CREATE TABLE sample_points1 (skey INTEGER, point1 ST_Geometry);

By default, the following query issued through a client application results in the export of values in the point1 column using the WKT representation of a point:

SELECT *
FROM sample_points1;

SKEY          POINT1
--------      ------------
1001          POINT(10 20)

For more information on the WKT format of the ST_Geometry type, see Well-Known Text Format.