diff --git a/Algorithms/StronglyConnectedComponents.h b/Algorithms/StronglyConnectedComponents.h index f30adff71..e6ef3938a 100644 --- a/Algorithms/StronglyConnectedComponents.h +++ b/Algorithms/StronglyConnectedComponents.h @@ -249,7 +249,10 @@ class TarjanSCC throw OSRMException("Creation of output file failed"); } - OGRLayer *poLayer = poDS->CreateLayer("component", nullptr, wkbLineString, nullptr); + OGRSpatialReference *poSRS = new OGRSpatialReference(); + poSRS->importFromEPSG(4326); + + OGRLayer *poLayer = poDS->CreateLayer("component", poSRS, wkbLineString, nullptr); if (nullptr == poLayer) { @@ -262,7 +265,7 @@ class TarjanSCC // true = stuff before, false = stuff after call std::stack tarjan_stack; std::vector components_index(m_node_based_graph->GetNumberOfNodes(), - std::numeric_limits::max()); + SPECIAL_NODEID); std::vector component_size_vector; std::vector tarjan_node_list(m_node_based_graph->GetNumberOfNodes()); unsigned component_index = 0, size_of_current_component = 0;