<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Yes, kind of discouraged, I thinkā€¦ you have to be pretty sure you feel good about the lifecycle of the memory underlying the lwgeom before you start altering it in place, IMO. You have a use case for this? (I guess affine transforms, reprojection)</div> <div id="bloop_sign_1411058147106030848" class="bloop_sign"><div><br></div><span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Paul Ramsey<br>http://cleverelephant.ca<div>http://postgis.net</div></div> <br><p style="color:#000;">On September 18, 2014 at 9:22:53 AM, Sandro Santilli (<a href="mailto:strk@keybit.net">strk@keybit.net</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>On Thu, Sep 18, 2014 at 07:42:54AM -0700, Paul Ramsey wrote:
<br>> 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).
<br>
<br>But getPoint2d_cp returns a const pointer, thus not allowing you to
<br>override values (discouraged?).
<br>
<br>I've updated the comment with r12986
<br>
<br>--strk;
<br></div></div></span></blockquote></body></html>