Merge pull request #20 from aheld84/edge-splitting

Fix edge splitting fragment ending up with wrong geometry in edge grid
This commit is contained in:
Patrick Brosi 2020-09-30 17:57:14 +02:00 committed by GitHub
commit e06c15656b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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