ST_GeomFromText

This section contains reference documentation for the ST_GeomFromText function.

Returns a geometry type object from Well-Known Text representation or extended (WKT) representation, with the optional spatial system reference

Signature

ST_GeomFromText(wkt)

Usage Examples

select ST_GeomFromText('POINT (30 10)') AS value
from ignoreMe 
select ST_GeomFromText('LINESTRING (30 10, 10 30, 40 40)') AS value
from ignoreMe 
select ST_GeomFromText('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))') AS value
from ignoreMe