Ignoring barrier=no for now. Thanks Derick.

This commit is contained in:
DennisOSRM 2012-03-16 12:19:10 +01:00
parent 75353852fd
commit 1116608389
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ private:
denseTagIndex += 2;
}
std::string barrierValue = keyVals.Find("barrier");
if(0 < barrierValue.length() && "border_control" != barrierValue && "toll_booth" != barrierValue)
if(0 < barrierValue.length() && "border_control" != barrierValue && "toll_booth" != barrierValue && "no" != barrierValue)
n.bollard = true;
if("traffic_signals" == keyVals.Find("highway"))

View File

@ -256,7 +256,7 @@ private:
}
}
if ( xmlStrEqual( k, ( const xmlChar* ) "barrier" ) == 1 ) {
if ( xmlStrEqual( value, ( const xmlChar* ) "" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "border_control" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "toll_booth" ) != 1){
if ( xmlStrEqual( value, ( const xmlChar* ) "" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "border_control" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "toll_booth" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "no" ) != 1){
node.bollard = true;
}
}