From b4585f24bba5e61c92d18968a65a22966c5ab282 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Thu, 1 Dec 2011 18:30:13 +0100 Subject: [PATCH] Skipping awfully tagged ways in extraction --- DataStructures/ExtractorCallBacks.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/DataStructures/ExtractorCallBacks.h b/DataStructures/ExtractorCallBacks.h index 6d2c5442b..67c96689a 100644 --- a/DataStructures/ExtractorCallBacks.h +++ b/DataStructures/ExtractorCallBacks.h @@ -173,8 +173,14 @@ public: w.nameID = strit->second; } - GUARANTEE(w.id != UINT_MAX, "found way with unknown type"); - GUARANTEE(-1 != w.speed, "found way with unknown speed"); + if(-1 == w.speed){ + WARN("found way with bogus speed, id: " << w.id); + return true; + } + if(w.id == UINT_MAX) { + WARN("found way with unknown type" << w.id); + return true; + } if ( w.direction == _Way::opposite ){ std::reverse( w.path.begin(), w.path.end() );