Example: ST_3DDistance

Teradata Vantage™ Geospatial Data Types

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1181-162K
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;