pgRouting

Changeset 38

Show
Ignore:
Timestamp:
10/02/07 16:59:45 (1 year ago)
Author:
anton
Message:

Column names fixed at assign_vertex_id function

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/1.0RC1/core/sql/routing_core_wrappers.sql

    r30 r38  
    2323-- Geometry schema description: 
    2424-- gid 
    25 -- source_id 
    26 -- target_id 
     25-- source 
     26-- target 
    2727-- edge_id 
    2828 
     
    5454                ' SET the_geom = startPoint(geometryn(m.the_geom, 1)) FROM ' || 
    5555                 quote_ident(geom_table) ||  
    56                 ' m where geom_id = m.source_id'; 
     56                ' m where geom_id = m.source'; 
    5757 
    5858        EXECUTE 'UPDATE ' || quote_ident(vertices_table) ||  
     
    103103 
    104104----------------------------------------------------------------------- 
    105 -- Fill the source_id and target_id column for all lines. All line ends 
     105-- Fill the source and target_id column for all lines. All line ends 
    106106--  with a distance less than tolerance, are assigned the same id 
    107107----------------------------------------------------------------------- 
     
    161161                                                                                                                                                                                                                                         
    162162                                EXECUTE 'update ' || quote_ident(geom_table) ||  
    163                                     ' SET source_id = ' || source_id ||  
    164                                     ', target_id = ' || target_id ||  
     163                                    ' SET source = ' || source_id ||  
     164                                    ', target = ' || target_id ||  
    165165                                    ' WHERE ' || quote_ident(gid_cname) || ' =  ' || points.id; 
    166166                END LOOP;