ST_AsText¶
Returns the Well-Known Text string representation of a geometry or geography.
Usage¶
string ST_AsText(geom: geometry)
string ST_AsText(geog: geography)
Arguments¶
- geog (geography): Input geography
- geom (geometry): Input geometry
Description¶
Alias: ST_AsWKT.
Examples¶
SELECT ST_AsText(ST_Point(1.0, 2.0));
┌────────────────────────────────────────────┐
│ st_astext(st_point(Float64(1),Float64(2))) │
│ utf8 │
╞════════════════════════════════════════════╡
│ POINT(1 2) │
└────────────────────────────────────────────┘
SELECT ST_AsText(ST_GeogPoint(1.0, 2.0));
┌────────────────────────────────────────────────┐
│ st_astext(st_geogpoint(Float64(1),Float64(2))) │
│ utf8 │
╞════════════════════════════════════════════════╡
│ POINT(1 2) │
└────────────────────────────────────────────────┘