Opened 3 years ago

Closed 3 years ago

#4859 closed enhancement (fixed)

Add ST_Point, ST_PointZ, ST_PointM, ST_PointZM with optional SRID

Reported by: mdavis Owned by: pramsey
Priority: medium Milestone: PostGIS 3.2.0
Component: postgis Version: master
Keywords: Cc:

Description

For convenience and brevity it would be nice to have POINT constructors that can handle all dimensions, and can include an optional SRID:

ST_Point(X, Y [, srid=0] )
ST_PointZ(X, Y, Z [, srid=0] )
ST_PointM(X, Y, M [, srid=0] )
ST_PointZM(X, Y, Z, M [, srid=0] )

Or perhaps the SRID could be provided as a named parameter, to avoid unintentional errors by using the wrong function name?

See discussion on the Dev list. See also #4819.

Change History (2)

comment:1 by Paul Ramsey <pramsey@…>, 3 years ago

In a8d1c64/git:

ST_Point, ST_PointZ, ST_PointM, ST_PointZM, constructors with SRID parameter, references #4859

comment:2 by pramsey, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.