Hi ahmet,<br><br>you can use something like that (and easily write a function):<br><br>here, the point is (0 0) : ST_makepoint(0,0) <br>,azimuth is 45 and distance is 50.<br><br>select st_makeline(st_makepoint(0,0),st_makepoint(xx,yy)) as the_geom<br>
FROM<br>(<br>select <br>ST_x(st_makepoint(0,0)) + (50 * (sin(45))) as xx, <br>ST_y(st_makepoint(0,0)) + (50 * (cos(45))) as yy<br>) as foo<br><br><br>Fred.<br><br><br><br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 12:26 PM, ahmet temiz <span dir="ltr"><<a href="mailto:ahmettemiz88@gmail.com">ahmettemiz88@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">hello<br>
<br>
I want to make a linestring from a known point and known direction (as<br>
azimuth) with<br>
certain length.<br>
<br>
how can I do that ?<br>
<br>
regards<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto: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>
</blockquote></div><br>