PLEASE DISREGARD -- The answer is obvious and unrelated to postgis (SQL noob error).<div><br></div><div><br><div class="gmail_quote">On Sat, Apr 7, 2012 at 7:41 PM, Chris Kelley <span dir="ltr"><<a href="mailto:iamchriskelley@gmail.com">iamchriskelley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>Using postgis 1.5 to update a table of points along a line with their fractional position along that line. I have confirmed that a select query returns good results:</div>
<div><br></div><div>select st_line_locate_point(a.the_geom, b.the_geom) as line_frac from road_table a, points_table b;</div>
<div><br></div><div>This does not work properly however if I use an update query:</div><div><br></div><div>update points_table set line_frac = st_line_locate_point(a.the_geom, b.the_geom) from road_table a, points_table b;</div>

<div><br></div><div>In that case, the query still processes but all line_frac entries in points_table have what is the highest value in the select query; i.e. the value that should only belong to the point furthest down the road.</div>

<div><br></div><div>Does anyone know what's going on here and how to fix it? Didn't find anything on this online.</div><div><br></div><div>Thanks,</div><div>Chris</div>
</blockquote></div><br></div>