ST_MPointFromText — Constructs a MultiPoint object given its Well-known text Representation
geometry ST_MPointFromText(
varchar WKT)
;
geometry ST_MPointFromText(
varchar WKT, integer
SRID)
;
Constructs a MultiPoint object given its Well-known text Representation. If the SRID is not provided it defaults to -1.
Returns Null when the WKT is not a MultiPoint or MultiPointM.
2D | 3D | M |
---|---|---|
OGC SFS for SQL. 1.1 (1999) | OGC SFS for SQL. 1.1.0 (2005) | OGC SFS for SQL. 1.2.0 (2006) | SQL-MM Part 3 |
---|---|---|---|
3.2.6.2 | 7.2.6.1 | - | 9.2.4 |
SELECT ST_Asewkt(ST_MPointFromText('MULTIPOINT(5 5 10, 8 10 15, 12 10 20)')); --Result MULTIPOINT (5 5 10, 8 10 15, 12 10 20) --Returns the EWKT Representation of a 4D MultiLineString. SELECT ST_Asewkt(MPointFromText('MULTIPOINT(5 5 10 -20, 8 10 15 -4, 12 10 20 -6)',25830)); --Result SRID=25830;MULTIPOINT (5 5 10 -20, 8 10 15 -4, 12 10 20 -6)