Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
ST_AsExtText 関数は、ジオメトリを表すバイナリ文字列を返します。出力フォーマットは EWKT です。
ST_AsExtText(geometry-expression)
VARCHAR geometry-expression の EWKT 表現を返します。
SQL/MM (ISO/IEC 13249-3: 2006) 2006) 5.1.37
次の例は、結果 SRID=4326;Point (1 2) を返します。SRID は、プレフィクスとして結果に含まれます。
SRID=4326;Point (1 2)
select ST_AsExtText(ST_Point(1.0, 2.0, 4326))
次の例は、結果 SRID=4326;Point(1 2) を返します。ST_AsExtText() 関数は、ジオメトリを VARCHAR 型に変換するときに暗黙的に呼び出されます。
SRID=4326;Point(1 2)
select cast(ST_Point(1.0, 2.0, 4326) as varchar(25))