From c023bb963d84573ab38d03f8236a1d1bf4acb031 Mon Sep 17 00:00:00 2001 From: Alexander Held | geOps Date: Wed, 30 Sep 2020 16:20:04 +0200 Subject: [PATCH] Fix edge splitting fragment being registered with wrong geometry in edge grid If I'm not mistaken, there is a typo in the OsmBuilder when an edge is split into two edges to insert a station: one of the new edges is registered with the wrong geometry in the edge grid. This should fix it. --- src/pfaedle/osm/OsmBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pfaedle/osm/OsmBuilder.cpp b/src/pfaedle/osm/OsmBuilder.cpp index eaa4ab1..aae4ee3 100644 --- a/src/pfaedle/osm/OsmBuilder.cpp +++ b/src/pfaedle/osm/OsmBuilder.cpp @@ -1357,7 +1357,7 @@ std::set OsmBuilder::snapStation(Graph* g, NodePL* s, EdgeGrid* eg, ll.push_back(*n->pl().getGeom()); ll.push_back(*e->getTo()->pl().getGeom()); *nf->pl().getGeom() = ll; - eg->add(l, nf); + eg->add(ll, nf); // replace edge in restrictor restor->replaceEdge(e, ne, nf);