Hi Gus.<br><br>If what you want is get the nearest point of a linestring to a point you should use:<br><br>line_interpolate_point(the_geom,line_locate_point(the_geom,yourpoint))<br><br>where the geom is the network link linestring and yourpoint is your point :P.
<br><br>However this is the nearest point from the linestring to your point and I&#39;m not sure if this is what you want (because the &quot;orthogonal projection&quot; could be outside the network link if I&#39;m not wrong)
<br><br>Also I&#39;m not sure if you want to add that point as a vertex in your network link or just want to get the position of that point.<br><br>Obviously you must do the necesary joins in the query so the function will use the right &quot;the_geom&quot; (
i.e. the linestring of the related network link).<br><br>I hope it helps. If you have any question ask me again.<br><br>Rodrigo.<br><br><div><span class="gmail_quote">On 7/5/07, <b class="gmail_sendername">Gustavo Ces</b>
 &lt;<a href="mailto:g.ces@pettra.es">g.ces@pettra.es</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi all,</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; I´m trying to assing some 
polygon centroids to a network. I´ve got the network and those centroids has as 
atribute a link_id. The question is, is it posible to make an orthogonal 
projection over its relationated network link?&nbsp;What i want is to add a node 
into the link with the shortest distance between them. Something like 
this</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I</font></div>
<div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
O--------------&gt;&nbsp;I</font></div>
<div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp; 
network link</font></div>
<div><font face="Arial" size="2">&nbsp;centroid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font face="Arial" size="2">I&nbsp; </font></div>
<div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Thanks in advance! ( ya, i know, not a 
great&nbsp;schema!) :)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Gus</font></div></div>
<br>_______________________________________________<br>postgis-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br><br>
</blockquote></div><br>