Skip to main content
Constructs a MultiPoint from the WKT with the given SRID. If SRID is not provided then it defaults to 0. It returns null if the WKT is not a MULTIPOINT.

Signatures

ST_MPointFromText (Wkt: String)
ST_MPointFromText (Wkt: String, srid: Integer)

Parameters

Wkt
String
required
A Well-Known Text (WKT) representation of a geometry.
srid
Integer
Spatial Reference Identifier.

Return type

The resulting geometry.

Example

SELECT ST_MPointFromText('MULTIPOINT ((10 10), (20 20), (30 30))')
MULTIPOINT ((10 10), (20 20), (30 30))