<br><font size=2><tt>Hi Jong,</tt></font>
<br>
<br><font size=2><tt>> Wow... Amazing PostGIS!!<br>
</tt></font>
<br><font size=2><tt>That's the spirit!</tt></font>
<br>
<br><font size=2><tt>> Question: How to select points
on the line? For example, how to <br>
> select the bridges on the highway?<br>
</tt></font>
<br><font size=2><tt>Good practical question - I get excited thinking about
just how easy this is to do (with no licensing fees involved!).</tt></font>
<br>
<br><font size=2><tt>I think it will depend on how you define "on
the line". Do the bridge share the same point as a node in your
line? Or (as I assume is the case) are your points within a certain
distance from a line (i.e. < 10 metres)? </tt></font>
<br>
<br><font size=2><tt>If the latter, then something like this should do
the trick:</tt></font>
<br>
<br><font size=2><tt>SELECT bridges.name</tt></font>
<br><font size=2><tt>FROM bridges, highways</tt></font>
<br><font size=2><tt>WHERE DISTANCE(bridges.geometrycolumn, highways.geometrycolumn)
< 10;</tt></font>
<br>
<br><font size=2><tt>There are ways to optimize this query, I just gave
you the most basic.</tt></font>
<br>
<br><font size=2><tt>Hope that helps you out.</tt></font>
<br>
<br><font size=2><tt>Tyler</tt></font>