make source & writingprogram optional

This commit is contained in:
Peter 2011-05-23 21:54:19 +02:00
parent f1c905e60f
commit 0fbe0f8cff
1 changed files with 4 additions and 2 deletions

View File

@ -259,10 +259,12 @@ int main(int argc, char *argv[]) {
debug(" required_feature: %s", osmheader.optional_features(i).c_str());
// tell about the writing program
debug(" writingprogram: %s", osmheader.writingprogram().c_str());
if(osmheader.has_writingprogram());
debug(" writingprogram: %s", osmheader.writingprogram().c_str());
// tell about the source
debug(" source: %s", osmheader.source().c_str());
if(osmheader.has_source())
debug(" source: %s", osmheader.source().c_str());
}
else if(blobheader.type() == "OSMData") {