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'm not sure if this is what you want (because the "orthogonal projection" could be outside the network link if I'm not wrong)
<br><br>Also I'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 "the_geom" (
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>
 <<a href="mailto:g.ces@pettra.es">g.ces@pettra.es</a>> 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> </div>
<div><font face="Arial" size="2">    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? 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> </div>
<div><font face="Arial" size="2">                           I</font></div>
<div><font face="Arial" size="2">        
O--------------> I</font></div>
<div><font face="Arial" size="2">                            I  
network link</font></div>
<div><font face="Arial" size="2"> centroid                </font><font face="Arial" size="2">I  </font></div>
<div><font face="Arial" size="2">    </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks in advance! ( ya, i know, not a 
great schema!) :)       </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </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>