<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hey Ben...<br><br>Seasons greetings!!<br><br>You have a couple of options:<br><br>ST_Translate() is the simplest, but if your lines are horizontal you may want a Y shift as well?<br><br>http://postgis.refractions.net/documentation/manual-svn/ST_Translate.html<br><br><br>Having done this, I suggest you also use ST_reverse() to reflect the direction is now going the other way (unless it already is :-)<br>http://postgis.refractions.net/documentation/manual-svn/ST_Reverse.html<br><br><br>Cheers,<br><br> Brent<br><br>For more complex shifting of features, probably overkill in your case, see<br>http://postgis.refractions.net/documentation/manual-svn/ST_Affine.html<br>--- On <b>Thu, 12/23/10, Ben Madin <i><lists@remoteinformation.com.au></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left:
5px;"><br>From: Ben Madin <lists@remoteinformation.com.au><br>Subject: [postgis-users] Shifting linestrings left<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Thursday, December 23, 2010, 3:13 PM<br><br><div class="plainMail">G'day all,<br><br>I have a problem where I am trying to show the route of livestock movements, but I am loosing information when the travel along the same road in different directions (ie in some cases they travel from a saleyard to a feedlot, then back to the saleyard after a period). The roads they travel along are single linestrings.<br><br>Is there a way to 'shift' the linestring to the left - after all, that would be sensible side of the road to drive on...<br><br>cheers<br><br>Ben<br><br><br>_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net"
href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>