From 8839a5eb3fabeb3ef1b9e1868c9ff418bd53ba74 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Tue, 28 Feb 2012 15:15:08 +0100 Subject: [PATCH] All kinds of barriers get parsed now, not only bollards. --- DataStructures/PBFParser.h | 2 +- DataStructures/XMLParser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/PBFParser.h b/DataStructures/PBFParser.h index fce20e860..55ea019d7 100644 --- a/DataStructures/PBFParser.h +++ b/DataStructures/PBFParser.h @@ -223,7 +223,7 @@ private: keyVals.Add(key, value); denseTagIndex += 2; } - if("bollard" == keyVals.Find("barrier")) + if("" != keyVals.Find("barrier")) n.bollard = true; if(!(*addressCallback)(n, keyVals)) diff --git a/DataStructures/XMLParser.h b/DataStructures/XMLParser.h index 9bfb3ae48..cefd004da 100644 --- a/DataStructures/XMLParser.h +++ b/DataStructures/XMLParser.h @@ -257,7 +257,7 @@ private: } } if ( xmlStrEqual( k, ( const xmlChar* ) "barrier" ) == 1 ) { - if ( xmlStrEqual( value, ( const xmlChar* ) "bollard" ) == 1 ){ + if ( xmlStrEqual( value, ( const xmlChar* ) "" ) != 1 ){ node.bollard = true; } }