From e610ff56c4c22e627e9b80dd9173058c046d48af Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Thu, 13 Apr 2023 16:34:20 +0200 Subject: [PATCH] [doc] explain how to get taginfo database Signed-off-by: Mateusz Konieczny part of #4895 --- tools/python/stylesheet/cat_stat.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/python/stylesheet/cat_stat.py b/tools/python/stylesheet/cat_stat.py index b405d54c1d..3f8a2191cc 100755 --- a/tools/python/stylesheet/cat_stat.py +++ b/tools/python/stylesheet/cat_stat.py @@ -115,6 +115,12 @@ if __name__ == '__main__': if len(sys.argv) < 2: print('Calculates tag usage and categories stats, suggesting new types.') print('Usage: {} []'.format(sys.argv[0])) + print('To obtain taginfo files visit https://taginfo.openstreetmap.org/download') + print('On Linux you can obtain this files by following operations') + print('wget https://taginfo.openstreetmap.org/download/taginfo-db.db.bz2') + print('wget https://taginfo.openstreetmap.org/download/taginfo-wiki.db.bz2') + print('bzip2 -dk taginfo-wiki.db.bz2') + print('bzip2 -dk taginfo-db.db.bz2') sys.exit(1) data_path = sys.argv[2] if len(sys.argv) >= 3 else os.path.join(os.path.dirname(sys.argv[0]), '..', '..', '..', 'data')