summaryrefslogtreecommitdiff
path: root/sources/db
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2011-10-12 17:07:08 +0200
committerJochen Topf <jochen@topf.org>2011-10-12 17:07:08 +0200
commite6ba7db9ef8f4f02415b6bcc90f0e8acc7c6ba04 (patch)
tree091ed0016b45a18288920fc3fe05c734f149ab7e /sources/db
parent37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c (diff)
downloadtaginfo-e6ba7db9ef8f4f02415b6bcc90f0e8acc7c6ba04.tar
taginfo-e6ba7db9ef8f4f02415b6bcc90f0e8acc7c6ba04.tar.gz
Generate distribution maps for keys on way, too
Until now distribution maps were only generated for keys on nodes. No there are maps for keys on ways, too. (Not for relations, though). This commit also adds command line options for tagstats to define the area you want the map for. Its no longer necessary to recompile tagstats if you want to change this. This commit does not change the UI/API yet, so you still only get the node map.
Diffstat (limited to 'sources/db')
-rw-r--r--sources/db/pre.sql6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/db/pre.sql b/sources/db/pre.sql
index b91e31e..64e28bd 100644
--- a/sources/db/pre.sql
+++ b/sources/db/pre.sql
@@ -24,7 +24,8 @@ CREATE TABLE keys (
users_nodes INTEGER DEFAULT 0,
users_ways INTEGER DEFAULT 0,
users_relations INTEGER DEFAULT 0,
- grids INTEGER DEFAULT 0,
+ cells_nodes INTEGER DEFAULT 0,
+ cells_ways INTEGER DEFAULT 0,
in_wiki INTEGER DEFAULT 0,
in_wiki_en INTEGER DEFAULT 0,
in_josm INTEGER DEFAULT 0,
@@ -47,7 +48,8 @@ DROP TABLE IF EXISTS key_distributions;
CREATE TABLE key_distributions (
key VARCHAR,
- png BLOB
+ nodes BLOB,
+ ways BLOB
);
DROP TABLE IF EXISTS tags;