pgRouting

Changeset 27

Show
Ignore:
Timestamp:
08/17/07 16:00:22 (1 year ago)
Author:
anton
Message:

assign_vertex_id: source_id changed to source, target_id changed to target

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/routing_wrappers.sql

    r19 r27  
    2626-- Geometry schema description: 
    2727-- gid 
    28 -- source_id 
    29 -- target_id 
     28-- source 
     29-- target 
    3030-- edge_id 
    3131 
     
    5757                ' SET the_geom = startPoint(geometryn(m.the_geom, 1)) FROM ' || 
    5858                 quote_ident(geom_table) ||  
    59                 ' m where geom_id = m.source_id'; 
     59                ' m where geom_id = m.source'; 
    6060 
    6161        EXECUTE 'UPDATE ' || quote_ident(vertices_table) ||  
    6262                ' set the_geom = endPoint(geometryn(m.the_geom, 1)) FROM ' ||  
    6363                quote_ident(geom_table) ||  
    64                 ' m where geom_id = m.target_id AND ' ||  
     64                ' m where geom_id = m.target AND ' ||  
    6565                quote_ident(vertices_table) ||  
    6666                '.the_geom IS NULL'; 
     
    106106 
    107107----------------------------------------------------------------------- 
    108 -- Fill the source_id and target_id column for all lines. All line ends 
     108-- Fill the source and target column for all lines. All line ends 
    109109--  with a distance less than tolerance, are assigned the same id 
    110110----------------------------------------------------------------------- 
     
    164164                                                                                                                                                                                                                                         
    165165                                EXECUTE 'update ' || quote_ident(geom_table) ||  
    166                                     ' SET source_id = ' || source_id ||  
    167                                     ', target_id = ' || target_id ||  
     166                                    ' SET source = ' || source_id ||  
     167                                    ', target = ' || target_id ||  
    168168                                    ' WHERE ' || quote_ident(gid_cname) || ' =  ' || points.id; 
    169169                END LOOP;