Skip to main content
Constructs a GEOGRAPHY object from a Well-Known Text (WKT) string. The extended WKT format is supported only for Spatial Reference Identifier (SRID) 4326, which corresponds to the WGS84 coordinate system. Normalization and invalid input handling are applied as described in the GEOGRAPHY type documentation.

Syntax

Parameters

Return Type

ST_GEOGFROMTEXT returns a value of type GEOGRAPHY.

Example

The following code example constructs a Point from a WKT string describing a Point at specified longitude and latitude coordinates and converts it to WKT format:

Rows: 1Execution time: 5.60ms