[postgis-devel] point constructors
Paul Ramsey
pramsey at refractions.net
Wed Oct 13 09:35:53 PDT 2004
(a) yes, I think the setsrid(makepoint()) is preferable
(b) can I have a makepoint(...) constructor that just does the "right
thing" depending on the number of arguments? I know the dz and dm cases
have the same number of arguments, but I will assume for the purposes of
simplicity that the 3-argument form is xyz.
strk at refractions.net wrote:
> I've added the following functions to postgis HEAD branch.
>
> makepoint2d(SRID, x, y);
> makepoint3dz(SRID, x, y, z);
> makepoint3dm(SRID, x, y, m);
> makepoint4d(SRID, x, y, z, m);
>
> Do you think the SRID arg should be omitted instead ?
>
> setSRID(makepoint2d(10, 10), 4326); // would replace it
>
> --strk;
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list