+ osmium::io::File input_file{argv[1]};
+
+ // need to sort the data first and make ids absolute
+ std::cerr << "Read file...\n";
+ osmium::io::Reader reader{input_file};
+ std::vector<osmium::memory::Buffer> changes;
+ osmium::ObjectPointerCollection objects;
+ AbsoluteIdHandler abshandler;
+ while (osmium::memory::Buffer buffer = reader.read()) {
+ osmium::apply(buffer, abshandler, objects);
+ changes.push_back(std::move(buffer));
+ }
+ reader.close();