Yes sir. That worked. But I'm still getting an error:<br><br>msDrawMap(): Image handling error. Failed to draw layer named 'route'.
msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "source" does not exist
LINE 1: SELECT gid AS id, source::int4, target::int4, length::double...
^
QUERY: SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line
<br><br>The error log contains this:<br><br>[Tue Jun 12 08:54:34 2012].554731 msPostGISLayerWhichShapes query: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from (select b.gid, b.the_geom FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a, edges_line as b where a.edge_id=b.gid) AS foo where the_geom && GeomFromText('POLYGON((-6015.80966101695 -4605.49,-6015.80966101695 4811.71,6544.54966101695 4811.71,6544.54966101695 -4605.49,-6015.80966101695 -4605.49))',-1)<br>
[Tue Jun 12 08:54:34 2012].568295 msPostGISLayerWhichShapes query status: PGRES_FATAL_ERROR (7)<br>[Tue Jun 12 08:54:34 2012].568405 Error (msPostGISLayerWhichShapes()<br>) executing query: ERROR: column "source" does not exist<br>
LINE 1: SELECT gid AS id, source::int4, target::int4, length::double...<br> ^<br>QUERY: SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line<br>[Tue Jun 12 08:54:34 2012].568478 msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "source" does not exist<br>
LINE 1: SELECT gid AS id, source::int4, target::int4, length::double...<br> ^<br>QUERY: SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line<br>