pgRouting

Changeset 207

Show
Ignore:
Timestamp:
09/01/08 15:10:38 (3 months ago)
Author:
anton
Message:

Topology creation fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/osm2pgrouting/trunk/src/Export2DB.cpp

    r201 r207  
    118118                query+=",$$"+ way->name +"$$"; 
    119119        query+=");"; 
    120               std::cout << query <<std::endl; 
     120//            std::cout << query <<std::endl; 
    121121        PGresult *result = PQexec(mycon, query.c_str()); 
    122122} 
     
    144144        result = PQexec(mycon,"CREATE INDEX source_idx ON ways(source);"); 
    145145        result = PQexec(mycon,"CREATE INDEX target_idx ON ways(target);"); 
    146     result = PQexec(mycon,"CREATE INDEX geom_idx ON ways USING GIST(the_geom GIST_GEOMETRY_OPS);"); 
    147         result = PQexec(mycon,"SELECT assign_vertex_id('ways', 0.0001, 'the_geom', 'id');"); 
     146        result = PQexec(mycon,"CREATE INDEX geom_idx ON ways USING GIST(the_geom GIST_GEOMETRY_OPS);"); 
     147        result = PQexec(mycon,"SELECT assign_vertex_id('ways', 0.0001, 'the_geom', 'gid');"); 
    148148         
    149149}