Example: AddGeometryColumn_3D

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
CREATE TABLE lakes (
fid INTEGER NOT NULL,
name VARCHAR(64),
shore ST_Geometry ) UNIQUE PRIMARY INDEX (fid);

CALL SYSSPATIAL.AddGeometryColumn_3D('','OpenGISU','lakes','shore',3,
     988,'ST_Polygon', 0.0, 1.0, 1000.0, 1001.0, s );

resultString
-----------------------------------------------------
shore in table OpenGISU.lakes was successfully added.

CREATE TABLE road_segments (
fid INTEGER NOT NULL,
name VARCHAR(64),
centerline ST_Geometry ) UNIQUE PRIMARY INDEX (fid);

CALL SYSSPATIAL.AddGeometryColumn_3D( '', 'OpenGISU', 'road_segments',
     'centerline', 3, 988, 'ST_LineString', 0E0, 1E0, 1E3, 1.001E3, s );

resultString
------------------------------------------------------------------
centerline in table OpenGISU.road_segments was successfully added.