ST_Force_4D — Forces the incoming geometries to be XYZM dimensions.
geometry ST_Force_4D(
bytea
Geometry)
;
Forces the incoming geometries to be XYZM dimensions. O is set for unknown Z or M coordinates.
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 |
---|---|---|---|
- | - | - | - |
SELECT ST_AsEWKT(ST_Force_4D(ST_GeomFromEWKT('LINESTRING (0 0 4, 10 10 5, 20 10 6)'))); --Result LINESTRING (0 0 4 0, 10 10 5 0, 20 10 6 0) SELECT ST_AsEWKT(ST_Force_4D(ST_GeomFromEWKT('GEOMETRYCOLLECTION(POINTM(0 0 -4),POINT(5 5 10 -4))'))); --Result GEOMETRYCOLLECTION (POINT (0 0 0 -4), POINT (5 5 10 -4))