summaryrefslogtreecommitdiff
path: root/tagstats/test_tagstats.sh
blob: ec08b9140b58ea4f6610267271c30a10c0661e81 (plain)
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
#!/bin/sh
#
#  test_tagstats.sh OSMFILE
#
#  This is a little helper program to test the function of tagstats.
#  Its not supposed to be used in production.
#

set -e
set -x

DATABASE=taginfo-db.db
OSMFILE=$1

rm -f $DATABASE

sqlite3 $DATABASE <../sources/init.sql
sqlite3 $DATABASE <../sources/db/pre.sql

ulimit -c 1000000000
rm -f core

#./tagstats --left=5.5 --bottom=47 --right=15 --top=55 --width=200 --height=320 $OSMFILE $DATABASE
./tagstats -T test_tagslist.txt $OSMFILE $DATABASE