16.20 - 例: AddGeometryColumn - Teradata Vantage NewSQL Engine

Teradata Vantage™ 地理空間データ型

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
プログラミング リファレンス
featnum
B035-1181-162K-JPN
CREATE TABLE lakes (
fid INTEGER NOT NULL,
name VARCHAR(64),
shore ST_Geometry ) UNIQUE PRIMARY INDEX (fid);

CALL SYSSPATIAL.AddGeometryColumn('','OpenGISU','lakes','shore',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( '', 'OpenGISU', 'road_segments',
      'centerline', 988, 'ST_LineString', 0E0, 1E0, 1E3, 1.001E3, s );

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