diff options
author | Jochen Topf <jochen@topf.org> | 2012-07-15 15:50:55 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-07-15 15:50:55 +0200 |
commit | 1358b4d4d9056921eabe4618b86b4170b3644274 (patch) | |
tree | 73e98bfb8415b98b5e1cae1193cccbcced976b81 /tagstats/tagstats.cpp | |
parent | c3f9e2cf18ae1f6cb75b6d9c136ccfeb4271a14a (diff) | |
download | taginfo-1358b4d4d9056921eabe4618b86b4170b3644274.tar taginfo-1358b4d4d9056921eabe4618b86b4170b3644274.tar.gz |
Changes for newest Osmium version
Diffstat (limited to 'tagstats/tagstats.cpp')
-rw-r--r-- | tagstats/tagstats.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tagstats/tagstats.cpp b/tagstats/tagstats.cpp index 01f2976..e941c88 100644 --- a/tagstats/tagstats.cpp +++ b/tagstats/tagstats.cpp @@ -22,6 +22,9 @@ You should have received a copy of the Licenses along with Osmium. If not, see #include <getopt.h> +#define OSMIUM_WITH_PBF_INPUT +#define OSMIUM_WITH_XML_INPUT + #include <osmium.hpp> #include "statistics_handler.hpp" @@ -154,6 +157,6 @@ int main(int argc, char *argv[]) { Osmium::Sqlite::Database db(argv[optind+1]); MapToInt<rough_position_t> map_to_int(left, bottom, right, top, width, height); TagStatsHandler handler(db, tags_list, map_to_int); - infile.read(handler); + Osmium::Input::read(infile, handler); } |