Changeset 27
- Timestamp:
- 08/17/07 16:00:22 (1 year ago)
- Files:
-
- trunk/routing_wrappers.sql (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/routing_wrappers.sql
r19 r27 26 26 -- Geometry schema description: 27 27 -- gid 28 -- source _id29 -- target _id28 -- source 29 -- target 30 30 -- edge_id 31 31 … … 57 57 ' SET the_geom = startPoint(geometryn(m.the_geom, 1)) FROM ' || 58 58 quote_ident(geom_table) || 59 ' m where geom_id = m.source _id';59 ' m where geom_id = m.source'; 60 60 61 61 EXECUTE 'UPDATE ' || quote_ident(vertices_table) || 62 62 ' set the_geom = endPoint(geometryn(m.the_geom, 1)) FROM ' || 63 63 quote_ident(geom_table) || 64 ' m where geom_id = m.target _idAND ' ||64 ' m where geom_id = m.target AND ' || 65 65 quote_ident(vertices_table) || 66 66 '.the_geom IS NULL'; … … 106 106 107 107 ----------------------------------------------------------------------- 108 -- Fill the source _id and target_idcolumn for all lines. All line ends108 -- Fill the source and target column for all lines. All line ends 109 109 -- with a distance less than tolerance, are assigned the same id 110 110 ----------------------------------------------------------------------- … … 164 164 165 165 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 || 168 168 ' WHERE ' || quote_ident(gid_cname) || ' = ' || points.id; 169 169 END LOOP;

