Example: ST_AsText - Analytics Database - Teradata Vantage

Geospatial Data Types

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-08-30
dita:mapPath
qgk1628112272483.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
ghz1472251264557
lifecycle
latest
Product Category
Teradata Vantage™
CREATE TABLE sample_streets(
skey INTEGER,
streetName VARCHAR(40),
streetShape ST_GEOMETRY);

INSERT INTO sample_streets
 VALUES(1, 'Main Street', 'LINESTRING(2 2, 3 2, 4 1)');
INSERT INTO sample_streets
 VALUES(1, 'Coast Blvd', 'LINESTRING(12 12, 18 17)');
   
SELECT streetShape.ST_AsText()
FROM sample_streets
WHERE skey < 1001;