Skip to content

Commit

Permalink
Path to tagstats program now in main config
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Jan 23, 2012
1 parent 244f354 commit 7cc9439
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions sources/db/update.sh
Expand Up @@ -36,17 +36,21 @@ sqlite3 $DATABASE <../init.sql
echo "`$DATECMD` Running pre.sql..."
sqlite3 $DATABASE <pre.sql

echo "`$DATECMD` Running count... "

echo "`$DATECMD` Running tagstats... "
top=`../../bin/taginfo-config.rb geodistribution.top`
right=`../../bin/taginfo-config.rb geodistribution.right`
bottom=`../../bin/taginfo-config.rb geodistribution.bottom`
left=`../../bin/taginfo-config.rb geodistribution.left`
width=`../../bin/taginfo-config.rb geodistribution.width`
height=`../../bin/taginfo-config.rb geodistribution.height`

#valgrind --leak-check=full --show-reachable=yes ./tagstats $PLANETFILE $DATABASE >valgrind.log 2>&1
./tagstats -T $DIR/interesting_tags.lst --left=$left --bottom=$bottom --top=$top --right=$right --width=$width --height=$height $PLANETFILE $DATABASE
TAGSTATS=`../../bin/taginfo-config.rb sources.db.tagstats`
if [ "x" = "x$TAGSTATS" ]; then
TAGSTATS="./tagstats"
fi

#TAGSTATS="valgrind --leak-check=full --show-reachable=yes $TAGSTATS"
$TAGSTATS -T $DIR/interesting_tags.lst --left=$left --bottom=$bottom --top=$top --right=$right --width=$width --height=$height $PLANETFILE $DATABASE

echo "`$DATECMD` Running update_characters... "
./update_characters.pl $DIR
Expand Down
3 changes: 3 additions & 0 deletions taginfo-config-example.json
Expand Up @@ -48,6 +48,9 @@
// These sources will be created from the actual sources.
"create": "db",
"db": {
// Path to the 'tagstats' program (absolute path or relative to sources/db directory).
"tagstats": "./tagstats",
// The OSM planet file or extract where we read the OSM data from.
"planetfile": "/osm/planet/var/current-planet.osm.pbf"
}
}
Expand Down

0 comments on commit 7cc9439

Please sign in to comment.