Is there a problem with the 'b.geom' reference in SELECT b.the_geom, b.* .... ?? There isn't a 'the_geom' column in 'edges_line' as such.. <br><br><br>DATA "the_geom FROM (SELECT b.the_geom, b.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, fromnodeid::int4 AS source, tonodeid::int4 AS target, length0::float8 AS cost FROM edges_line', 35, 210, false, false)) AS a, edges_line AS b WHERE a.edge_id = b.gid) AS foo using unique gid using srid=4326"<br>