ST_MakePoint — Erzeugt eine 2D-, 3DZ- oder 4D-Punktgeometrie.
geometry ST_MakePoint(
float x, float y)
;
geometry ST_MakePoint(
float x, float y, float z)
;
geometry ST_MakePoint(
float x, float y, float z, float m)
;
Creates a 2D XY, 3D XYZ or 4D XYZM Point geometry. Use ST_MakePointM to make points with XYM coordinates.
Use ST_SetSRID to specify a SRID for the created point.
Erzeugt eine 2D-, 3DZ- oder 4D-Punktgeometrie (Geometrie mit Kilometrierung). ST_MakePoint
ist zwar nicht OGC-konform, ist aber im Allgemeinen schneller und genauer als ST_GeomFromText oderST_PointFromText und auch leichter anzuwenden wenn Sie mit rohen Koordinaten anstatt mit WKT arbeiten.
![]() |
|
For geodetic coordinates, |
![]() |
|
The functions ST_Point, ST_PointZ, ST_PointM, and ST_PointZM can be used to create points with a given SRID. |
This function supports 3d and will not drop the z-index.
-- Create a point with unknown SRID SELECT ST_MakePoint(-71.1043443253471, 42.3150676015829); -- Create a point in the WGS 84 geodetic CRS SELECT ST_SetSRID(ST_MakePoint(-71.1043443253471, 42.3150676015829),4326); -- Create a 3D point (e.g. has altitude) SELECT ST_MakePoint(1, 2,1.5); -- Get z of point SELECT ST_Z(ST_MakePoint(1, 2,1.5)); result ------- 1.5
ST_GeomFromText, ST_PointFromText, ST_SetSRID, ST_MakePointM, ST_Point, ST_PointZ, ST_PointM, ST_PointZM