[postgis-devel] getPoint_internal and alignment

Sandro Santilli strk at keybit.net
Thu Sep 18 09:22:49 PDT 2014


On Thu, Sep 18, 2014 at 07:42:54AM -0700, Paul Ramsey wrote:
> You can safely cast now, though with great care with respect to dimensionality: casting a 2d pointarray into a  4d point would not be good. The getPoint2d_cp (??) function basically does this already, returning a const pointer to a point2d (always safe).

But getPoint2d_cp returns a const pointer, thus not allowing you to
override values (discouraged?).

I've updated the comment with r12986

--strk;



More information about the postgis-devel mailing list