Abort processing if there are no snappable edges remaining.

This commit is contained in:
Daniel Patterson 2016-04-14 13:07:23 -07:00
parent ae45ad1ad2
commit 8fb631417b

View File

@ -555,6 +555,10 @@ void Extractor::BuildRTree(std::vector<EdgeBasedNode> node_based_edge_list,
in_iter++;
}
auto new_size = out_iter - node_based_edge_list.begin();
if (new_size == 0)
{
throw util::exception("There are no snappable edges left after processing. Are you setting travel modes correctly in the profile? Cannot continue.");
}
node_based_edge_list.resize(new_size);
TIMER_START(construction);