Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
テキスト表現から多角形を構成します。
NEW ST_Polygon(text-representation[, srid])
text-representation
LONG VARCHAR
多角形のテキスト表現を含む文字列。入力には、Well Know Text (WKT) や 拡張 Well Know Text (EWKT) など、サポートされている任意のテキスト入力フォーマットを使用できます。
srid
INT
結果の SRID。指定しない場合、デフォルトは 0 です。
文字列表現から多角形を構成します。データベースサーバーでは、指定された文字列を検査して入力フォーマットを判断します。
SQL/MM (ISO/IEC 13249-3: 2006) 8.3.2
次の例では、Polygon ((-5 -5, 5 -5, 0 5, -5 -5), (-2 -2, -2 0, 2 0, 2 -2, -2 -2)) を返します。
SELECT NEW ST_Polygon('Polygon ((-5 -5, 5 -5, 0 5, -5 -5), (-2 -2, -2 0, 2 0, 2 -2, -2 -2))')