16.20 - Example: ST_3DDistance - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Geospatial Data Types

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1181-162K
Language
English (United States)
INSERT INTO sample_shapes VALUES(1,'Point(10 20 30)');
INSERT INTO sample_shapes VALUES(2,
 'MultiPoint((10 20 30),(40 50 60), (70 80 80))');
INSERT INTO sample_shapes VALUES(3,
 'Linestring(10 20 30,40 50 60, 70 80 80)');
INSERT INTO sample_shapes VALUES(4,
 'MultiLinestring((10 20 30,40 50 60), (70 80 80, 90 100 110))');

SELECT skey
FROM sample_shapes
WHERE shape.ST_3DDistance('POINT(10 20 30)') < 1E0;