ST_MakePoint — Creates a 2D, 3DZ or 4D Point.
geometry ST_Point(float x_lon, float y_lat);
geometry ST_MakePointM(float x, float y, float m);
geometry ST_MakePoint(double precision x, double precision y, double precision z, double precision m);
주어진 포인트 도형들로 정의되는 BOX2D를 생성합니다.
Use ST_MakePointM to make points with XYM coordinates.
While not OGC-compliant, ST_MakePoint is faster and more precise than ST_GeomFromText and ST_PointFromText. It is also easier to use for numeric coordinate values.
![]() | |
For geodetic coordinates, |
This function supports 3d and will not drop the z-index.
--Return point with unknown SRID SELECT ST_MakePoint(-71.1043443253471, 42.3150676015829); --Return point marked as WGS 84 long lat SELECT ST_SetSRID(ST_MakePoint(-71.1043443253471, 42.3150676015829),4326); --Return 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