Changeset 207
- Timestamp:
- 09/01/08 15:10:38 (3 months ago)
- Files:
-
- tools/osm2pgrouting/trunk/src/Export2DB.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/osm2pgrouting/trunk/src/Export2DB.cpp
r201 r207 118 118 query+=",$$"+ way->name +"$$"; 119 119 query+=");"; 120 std::cout << query <<std::endl;120 // std::cout << query <<std::endl; 121 121 PGresult *result = PQexec(mycon, query.c_str()); 122 122 } … … 144 144 result = PQexec(mycon,"CREATE INDEX source_idx ON ways(source);"); 145 145 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');"); 148 148 149 149 }

