Skip to content

Commit a197142

Browse files
committed
Remove oneway col from output
1 parent 7720d59 commit a197142

File tree

11 files changed

+7260
-4497
lines changed

11 files changed

+7260
-4497
lines changed

src/dsm/dsm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
static constexpr uint8_t DSM_VERSION_MAJOR = 2;
88
static constexpr uint8_t DSM_VERSION_MINOR = 3;
9-
static constexpr uint8_t DSM_VERSION_PATCH = 17;
9+
static constexpr uint8_t DSM_VERSION_PATCH = 18;
1010

1111
static auto const DSM_VERSION =
1212
std::format("{}.{}.{}", DSM_VERSION_MAJOR, DSM_VERSION_MINOR, DSM_VERSION_PATCH);

src/dsm/sources/Graph.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,11 @@ namespace dsm {
365365
continue;
366366
}
367367
std::istringstream iss{line};
368-
std::string sourceId, targetId, length, oneway, lanes, highway, maxspeed, name;
369-
// u;v;length;oneway;highway;maxspeed;name
368+
std::string sourceId, targetId, length, lanes, highway, maxspeed, name;
369+
// u;v;length;highway;maxspeed;name
370370
std::getline(iss, sourceId, ';');
371371
std::getline(iss, targetId, ';');
372372
std::getline(iss, length, ';');
373-
std::getline(iss, oneway, ';');
374373
std::getline(iss, lanes, ';');
375374
std::getline(iss, highway, ';');
376375
std::getline(iss, maxspeed, ';');

test/Test_graph.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,17 @@ TEST_CASE("Graph") {
196196
GIVEN("A graph object") {
197197
Graph graph{};
198198
WHEN("We import nodes and edges from OSM") {
199-
graph.importOSMNodes("./data/nodes.csv");
200-
graph.importOSMEdges("./data/edges.csv");
201-
std::ifstream fNodes{"./data/nodes.csv"};
199+
graph.importOSMNodes("./data/postua_nodes.csv");
200+
graph.importOSMEdges("./data/postua_edges.csv");
201+
std::ifstream fNodes{"./data/postua_nodes.csv"};
202202
// get number of lines
203203
std::string line;
204204
int nNodes{-1}; // -1 because of the header
205205
while (std::getline(fNodes, line)) {
206206
++nNodes;
207207
}
208208
fNodes.close();
209-
std::ifstream fEdges{"./data/edges.csv"};
209+
std::ifstream fEdges{"./data/postua_edges.csv"};
210210
int nEdges{-1}; // -1 because of the header
211211
while (std::getline(fEdges, line)) {
212212
++nEdges;
@@ -222,17 +222,17 @@ TEST_CASE("Graph") {
222222
}
223223
}
224224
WHEN("We import many nodes and edges from OSM") {
225-
graph.importOSMNodes("./data/nodes_big.csv");
226-
graph.importOSMEdges("./data/edges_big.csv");
227-
std::ifstream fNodes{"./data/nodes_big.csv"};
225+
graph.importOSMNodes("./data/forlì_nodes.csv");
226+
graph.importOSMEdges("./data/forlì_edges.csv");
227+
std::ifstream fNodes{"./data/forlì_nodes.csv"};
228228
// get number of lines
229229
std::string line;
230230
int nNodes{-1}; // -1 because of the header
231231
while (std::getline(fNodes, line)) {
232232
++nNodes;
233233
}
234234
fNodes.close();
235-
std::ifstream fEdges{"./data/edges_big.csv"};
235+
std::ifstream fEdges{"./data/forlì_edges.csv"};
236236
int nEdges{-1}; // -1 because of the header
237237
while (std::getline(fEdges, line)) {
238238
++nEdges;

test/data/edges.csv

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)