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.
This commit is contained in:
parent
69dc466605
commit
c023bb963d
1 changed files with 1 additions and 1 deletions
|
@ -1357,7 +1357,7 @@ std::set<Node*> OsmBuilder::snapStation(Graph* g, NodePL* s, EdgeGrid* eg,
|
||||||
ll.push_back(*n->pl().getGeom());
|
ll.push_back(*n->pl().getGeom());
|
||||||
ll.push_back(*e->getTo()->pl().getGeom());
|
ll.push_back(*e->getTo()->pl().getGeom());
|
||||||
*nf->pl().getGeom() = ll;
|
*nf->pl().getGeom() = ll;
|
||||||
eg->add(l, nf);
|
eg->add(ll, nf);
|
||||||
|
|
||||||
// replace edge in restrictor
|
// replace edge in restrictor
|
||||||
restor->replaceEdge(e, ne, nf);
|
restor->replaceEdge(e, ne, nf);
|
||||||
|
|
Loading…
Reference in a new issue