<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div>Hello list!</div><div><br></div><div>Here goes my first e-mail to this list. My name is Antonio Olinto and I work with fisheries research at São Paulo Fisheries Institute, Brazil.<br></div><div><br></div><div>I have a point geometry field in a table and I want to add -0.5° to both longitude and latitude.</div><div><br></div><div>Suppose I have a point at 010100000000000000000047C000000000000038C0 (-46,-24) and I want to add 0101000000000000000000E0BF000000000000E0BF (-0.5,-05) to have 010100000000000000004047C000000000008038C0 (-46.5,-24.5).</div><div><br></div><div>What I'm doing is</div><div>SELECT ST_MakePoint(ST_X('010100000000000000000047C000000000000038C0')-0.5,ST_Y('010100000000000000000047C000000000000038C0')-0.5)</div><div><br></div><div><span class="gmail-tlid-translation gmail-translation"><span title="" class="gmail-">Is there any way to do the sum using only geometries? Something like?</span></span></div><div><span class="gmail-tlid-translation gmail-translation"><span title="" class="gmail-">SELECT '010100000000000000000047C000000000000038C0'+'0101000000000000000000E0BF000000000000E0BF'<br></span></span></div><div><span class="gmail-tlid-translation gmail-translation"><span title="" class="gmail-"> or <br></span></span></div><div>SELECT ST_SUM('010100000000000000000047C000000000000038C0',</div><div>'0101000000000000000000E0BF000000000000E0BF')?</div><div><br></div><div></div><div>Thanks for any suggestion. Best regards.<br></div><br>-- <br><div dir="ltr" class="gmail_signature">Antônio Olinto<br></div></div></div></div></div></div></div>