ST_GeomFromText - Amazon Neptune
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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))