Skip to content

ST_AsText

Returns the Well-Known Text string representation of a geometry or geography.

Usage

string ST_AsText(geom: geometry)

Arguments

  • 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)                                 │
└────────────────────────────────────────────┘