respect use_restricions in xml import
This commit is contained in:
parent
0399022d25
commit
3c8dd85966
@ -63,11 +63,13 @@ bool XMLParser::Parse() {
|
|||||||
if(!externalMemory->wayFunction(way))
|
if(!externalMemory->wayFunction(way))
|
||||||
std::cerr << "[PBFParser] way not parsed" << std::endl;
|
std::cerr << "[PBFParser] way not parsed" << std::endl;
|
||||||
}
|
}
|
||||||
if ( xmlStrEqual( currentName, ( const xmlChar* ) "relation" ) == 1 ) {
|
if( use_turn_restrictions ) {
|
||||||
_RawRestrictionContainer r = _ReadXMLRestriction();
|
if ( xmlStrEqual( currentName, ( const xmlChar* ) "relation" ) == 1 ) {
|
||||||
if(r.fromWay != UINT_MAX) {
|
_RawRestrictionContainer r = _ReadXMLRestriction();
|
||||||
if(!externalMemory->restrictionFunction(r)) {
|
if(r.fromWay != UINT_MAX) {
|
||||||
std::cerr << "[XMLParser] restriction not parsed" << std::endl;
|
if(!externalMemory->restrictionFunction(r)) {
|
||||||
|
std::cerr << "[XMLParser] restriction not parsed" << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user