ST_AsText - Amazon Neptune
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

ST_AsText

ST_AsText returns the well-known text (WKT) representation of an input geometry.

Syntax

ST_AsText(geo)

Arguments

  • geo - A value of data type GEOMETRY, or an expression that evaluates to a GEOMETRY.

Return type

STRING

If geo is null, then null is returned.

If the input parameter is not a Geometry, then a BadRequestException is returned.

If the result is larger than a 64-KB STRING, then an error is returned.

Examples

RETURN ST_AsText(ST_GeomFromText('POLYGON((0 0,0 1,1 1,1 0,0 0))')) POLYGON((0 0,0 1,1 1,1 0,0 0))