Skip to content

ST_GeogFromWKT

Constructs a Geography from WKT.

Usage

geography ST_GeogFromWKT(wkt: string)
geography ST_GeogFromWKT(wkt: string, srid: integer)

Arguments

  • wkt (string)
  • srid (integer)

Description

Alias: ST_GeogFromText.

Examples

SELECT ST_GeogFromWKT('LINESTRING (1 2, 3 4, 5 6)');
┌────────────────────────────────────────────────────┐
│ st_geogfromwkt(Utf8("LINESTRING (1 2, 3 4, 5 6)")) │
│                      geography                     │
╞════════════════════════════════════════════════════╡
│ LINESTRING(1 2,3 4,5 6)                            │
└────────────────────────────────────────────────────┘