Hi ! <br>I have a working query, which gives me roads crossed by a line between to points, and I want to order these results by distance from the first point to the roads.<br><br>select rue.* from troncons_routes rue where intersects(rue.the_geom,(select makeline(a.the_geom, b.the_geom)<br>
from points_toto a, points_toto b<br>where a.nom='Geocia' and b.nom = 'Gare SNCF'))<br>ORDER BY rue.nom_rue_g, st_distance(a.the_geom,rue.the_geom);<br><br>everything works fine, but the last part, where it seems to miss an entry at the clause "from" for table 'a'  (that's what pgadmin's query editor says) which I set up already.<br>
<br>Can someone help me, please ?<br><br>Hope you understand my question, <br>regards, Guillaume<br>