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:
Alexander Held | geOps 2020-09-30 16:20:04 +02:00
parent 69dc466605
commit c023bb963d

View file

@ -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);