ST_PolyFromText

注意注意:

Oracle の ST_Geometry のみ

定義

ST_PolyFromText は、WKT 表現と空間参照 ID を受け取って、ST_Polygon を返します。

構文

sde.st_polyfromtext (wkt clob, srid integer)

戻り値のタイプ

ST_Polygon

ポリゴン列を 1 つ持つ polygon_test テーブルを作成します。

CREATE TABLE polygon_test (pl1 sde.st_geometry);

INSERT ステートメントは、ST_PolyFromText 関数を使用して、ポリゴンをポリゴン列に挿入します。

INSERT INTO polygon_test VALUES (
sde.st_polyfromtext ('polygon ((10.01 20.03, 10.52 40.11, 30.29 41.56,
31.78 10.74, 10.01 20.03))', 0)
);

7/10/2012