Well-known text representation
You can generate a geometry from the OGC well-known text (WKT) representation. The WKT is an ASCII text-formatted string that allows geometry to be exchanged in ASCII text form.
You can use the following functions in a third- or fourth-generation language (3GL or 4GL) program because they do not require the definition of any special program structures.
- ST_GeomFromText()
- The function creates an ST_Geometry from a text representation of any geometry type.
- ST_PointFromText()
- The function creates an ST_Point from a point text representation.
- ST_LineFromText()
- The function creates an ST_LineString from a linestring text representation.
- ST_PolyFromText()
- The function creates an ST_Polygon from a polygon text representation.
- ST_MPointFromText()
- The function creates an ST_MultiPoint from a multipoint representation.
- ST_MLineFromText()
- The function creates an ST_MultiLineString from a multilinestring representation.
- ST_MPolyFromText()
- The function creates an ST_MultiPolygon from a multipolygon representation.
- ST_AsText()
- The function converts an existing geometry into a text representation.