Hi Matt.<br><br>I think what you want may be:<br><br><span class="term">line_interpolate_point(the_geom,0.5)<br><br>(or ST_</span><span class="term">line_interpolate_point(the_geom,0.5) depending on your Postgis version)</span>
<br><span class="term"><br>where the_geom is a linestring and 0.5 means half of the total 2d length of the linestring.<br><br>You can reed more details in the documentation:<br><br><a href="http://postgis.refractions.net/docs/ch06.html#line_interpolate_point">
http://postgis.refractions.net/docs/ch06.html#line_interpolate_point</a><br><br>Rodrigo<br></span><br><div><span class="gmail_quote">On 6/21/07, <b class="gmail_sendername">Matt Doughty</b> <<a href="mailto:matt.doughty@geograma.com">
matt.doughty@geograma.com</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 link="blue" vlink="purple" lang="ES">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hi List,</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Is there a function in PostGIS that finds the
midpoint of a line?</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Matt</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<table style="background: white none repeat scroll 0% 50%; width: 100%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="left" bgcolor="white" border="0" cellpadding="0" width="100%">
<tbody><tr>
<td colspan="2" style="padding: 0.75pt;">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB"> </span></font></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding: 0.75pt;">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB"> </span></font></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p><font color="#2e3a75" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(46, 58, 117);" lang="EN-GB">Matt Doughty</span></font><span lang="EN-GB"></span></p>
</td>
<td rowspan="5" style="padding: 0.75pt;" valign="top">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><img src="cid:image001.jpg@01C7B3EC.FB81F3C0" height="100" width="90"></span></font><span lang="EN-GB"></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p><font color="#2e3a75" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(46, 58, 117);" lang="EN-GB">GEOGRAM</span></font><font color="#2e3a75" face="Arial"><span style="font-family: Arial; color: rgb(46, 58, 117);">
A S.L.</span></font><font face="Arial"><span style="font-family: Arial;"></span></font></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p><font color="#2e3a75" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(46, 58, 117);">Tel.:
+34 945 13 13 72 652 77 14 15</span></font><font face="Arial"><span style="font-family: Arial;"></span></font></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p><font color="#2e3a75" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(46, 58, 117);">Fax:
+34 945 23 03 40 </span></font><font face="Arial"><span style="font-family: Arial;"></span></font></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;">
<p><font color="#2e3a75" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(46, 58, 117);"><a href="http://www.geograma.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
www.geograma.com</a></span></font><font face="Arial"><span style="font-family: Arial;"></span></font></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding: 0.75pt;">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</td>
</tr>
</tbody></table>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</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>