<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Check out the <span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">upgis_lineshift function on</span><div><br></div><div><a href="http://trac.osgeo.org/postgis/wiki/UsersWikiplpgsqlfunctions">http://trac.osgeo.org/postgis/wiki/UsersWikiplpgsqlfunctions</a></div><div><br></div><div>The resulting line will have endpoints that  you want.</div><div><br></div><div>hth</div><div>charles</div><div><br><div><div>On Apr 29, 2010, at 7:10 PM, ots wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Hello,<br>I have oriented line. The line is given as two points (WGS84). I need to<br>calculate coordinates(also WGS84) of next two points on one side (left or<br>right) of the line in the given distance so all 4 points make together<br>rectangle. <br>Is there some function that can help me? I was searching but no idea.<br><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote></div></div></body></html>