例: AddGeometryColumn - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - 地理空間データ型

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
2020年6月
Language
日本語
Last Update
2021-03-30
dita:mapPath
ja-JP/vci1556127188517.ditamap
dita:ditavalPath
ja-JP/vci1556127188517.ditaval
dita:id
B035-1181
Product Category
Software
Teradata Vantage
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.