Skip to main content
Constructs a Geography object from a WKT (Well-Known Text) string. If SRID is not set, it defaults to 0 (unknown). This is the geography equivalent of ST_GeomFromText.

Signatures

Parameters

wkt
String
required
A Well-Known Text (WKT) representation of a geometry.
srid
Integer
Spatial Reference Identifier. Defaults to 0 if not specified.

Return type

The constructed geography object.

Examples