minor tweaks

This commit is contained in:
Dennis Luxen 2010-08-13 10:28:16 +00:00
parent d8701a7e41
commit 95dddcf522
2 changed files with 11 additions and 0 deletions

View File

@ -313,6 +313,16 @@ _Way _ReadXMLWay( xmlTextReaderPtr& inputReader, Settings& settings ) {
way.access = true; way.access = true;
} }
} }
if ( xmlStrEqual( k, (const xmlChar*) "motorcar" ))
{
if ( xmlStrEqual( value, ( const xmlChar* ) "yes" ) == 1)
{
way.access = true;
} else if ( xmlStrEqual( k, (const xmlChar*) "no" )) {
way.access = false;
}
}
} }
if ( k != NULL ) if ( k != NULL )
xmlFree( k ); xmlFree( k );

View File

@ -61,6 +61,7 @@ int main (int argc, char *argv[])
cerr << "usage: " << endl << argv[0] << " <file.osm>" << endl; cerr << "usage: " << endl << argv[0] << " <file.osm>" << endl;
exit(-1); exit(-1);
} }
cout << "extracting data from input file " << argv[1] << endl;
cout << "reading input file. This may take some time ..." << flush; cout << "reading input file. This may take some time ..." << flush;
xmlTextReaderPtr inputReader = inputReaderFactory(argv[1]); xmlTextReaderPtr inputReader = inputReaderFactory(argv[1]);