It returns zero if the closest point on the line to the given point is the start point of the line.  It returns one when the closest point on the line to the given point is the end point of the line.<div><br></div><div>David<br>

<br><div class="gmail_quote">On Wed, May 19, 2010 at 1:13 PM, Gokul <span dir="ltr"><<a href="mailto:gokulj@gmail.com">gokulj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<div><br><div>Newbie question. Please bear with me.</div><div><br></div><div>I understand ST_Line_Locate_Point that returns the "<span style="font-family:'Lucida Grande', Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;color:rgb(46, 46, 46)"> location of the closest point on LineString to the given Point as a fraction of the total distance of the LineString", but what is the distance between the Point and the LineString that it considers as 'close'</span><div>


<span style="font-family:'Lucida Grande', Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;color:rgb(46, 46, 46)"><br></span></div><div><font color="#2E2E2E" face="'Lucida Grande', Verdana, Geneva, Arial, Helvetica, sans-serif">In other words, when does it return zero? (i.e what is the distance at which a point is not close to a line?)</font></div>


<div><font color="#2E2E2E" face="'Lucida Grande', Verdana, Geneva, Arial, Helvetica, sans-serif"><br></font></div><div><font color="#2E2E2E" face="'Lucida Grande', Verdana, Geneva, Arial, Helvetica, sans-serif"><br>


</font></div><div><font color="#2E2E2E" face="'Lucida Grande', Verdana, Geneva, Arial, Helvetica, sans-serif">Thanks,</font></div><div><font color="#2E2E2E" face="'Lucida Grande', Verdana, Geneva, Arial, Helvetica, sans-serif">Gokul.</font></div>


</div></div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>************************************<br>David William Bitner<br>
</div>