[postgis-devel] point constructors
strk at refractions.net
strk at refractions.net
Wed Oct 13 10:06:44 PDT 2004
On Wed, Oct 13, 2004 at 09:35:53AM -0700, Paul Ramsey wrote:
> (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.
Yes and yes.
For simplicity sake this could be:
makePoint(x, y);
makePoint(x, y, z);
makePoint(x, y, z, m);
makePointM(x, y, m);
what do you think ?
--strk;
>
>
> 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
>
> _______________________________________________
> 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