Fork me on GitHub

ST_AsWKT

Signatures

VARCHAR ST_AsWKT(GEOMETRY geom);

Description

Converts a Geometry into its Well Known Text value.

Implements the OpenGIS Simple Features Implementation Specification for SQL version 1.2.1.

Example

SELECT ST_AsWKT('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))');
-- Answer: POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))
See also