/usr/share/doc/libosmium-dev/examples/osmium_progress.cpp is in libosmium-dev 0.0~20140910-9a069af-1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | /*
This is a small tool demonstrates the use of the progress handler.
The code in this example file is released into the Public Domain.
*/
#include <iostream>
#define OSMIUM_WITH_PBF_INPUT
#define OSMIUM_WITH_XML_INPUT
#include <osmium.hpp>
#include <osmium/handler/progress.hpp>
/* ================================================== */
int main(int argc, char* argv[]) {
if (argc != 2) {
std::cerr << "Usage: " << argv[0] << " OSMFILE" << std::endl;
exit(1);
}
Osmium::OSMFile infile(argv[1]);
Osmium::Handler::Progress handler;
Osmium::Input::read(infile, handler);
google::protobuf::ShutdownProtobufLibrary();
}
|