View a markdown version of this page

ST_GeomFromText - Amazon Neptune

ST_GeomFromText

ST_GeomFromText constructs a geometry object from a well-known text (WKT) representation of an input geometry.

Syntax

ST_GeomFromText(wkt_string)

Arguments

  • wkt_string - A value of data type STRING that is a WKT representation of a geometry.

Return type

GEOMETRY

If wkt_string is null, then null is returned.

If wkt_string is not valid, then a BadRequestException is returned.

Examples

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