例: GeoSequenceToRows - Advanced SQL Engine - Teradata Database

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

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
2021年7月
Language
日本語
Last Update
2021-09-23
dita:mapPath
ja-JP/ufo1590694251930.ditamap
dita:ditavalPath
ja-JP/wrg1590696035526.ditaval
dita:id
B035-1181
Product Category
Software
Teradata Vantage
CREATE TABLE sample_shapes(skey INTEGER, shape ST_Geometry);

INSERT INTO sample_shapes
(    100,
     'GeoSequence( (10 10, 15 15, -2 0),
                   (2007-03-14 01:35:00, 2007-03-14 01:35:05, 2007-03-14 01:35:08),
                   (1222, 1223, 1224), 
                   (2, 12.1, 3.14159, 2.78128, -10, -11, 100.1))' );

CREATE TABLE sample_trips(pkey FLOAT, point_index INTEGER, x FLOAT, y FLOAT, ts TIMESTAMP, 
Link_id DECIMAL(18,0), UserFld1 FLOAT, UserFld2 FLOAT, UserFld3 FLOAT);

   INSERT INTO sample_trips
   SELECT out_key, point_index, x, y, ts, Link_id, UserFld1, UserFld2, UserFld3
   FROM TABLE (GeoSequenceToRows(9601., sample_shapes.shape)) AS ts;