]> err.no Git - mapper/commitdiff
Add two db helper scripts
authorKaj-Michael Lang <milang@angel.tal.org>
Thu, 18 Oct 2007 09:41:52 +0000 (12:41 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Thu, 18 Oct 2007 09:41:52 +0000 (12:41 +0300)
docs/import-fi.sh [new file with mode: 0755]
docs/new-planet-db.sh [new file with mode: 0755]

diff --git a/docs/import-fi.sh b/docs/import-fi.sh
new file mode 100755 (executable)
index 0000000..78a0a86
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+echo "Importing Finland..."
+if [ -r "$1" ]; then
+ ./osm2db $1 60.0 18.0 70.0 33.0
+else
+ echo "*** Give planet.osm.bz2 as parameter"
+fi
diff --git a/docs/new-planet-db.sh b/docs/new-planet-db.sh
new file mode 100755 (executable)
index 0000000..25056f5
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+echo "Creating new planet database"
+
+if [ -r osm-planet.db ]; then
+ echo "Removing old planet db"
+ rm osm-planet.db
+fi
+
+sqlite3 osm-planet.db < osm-tables.sql
+sqlite3 osm-planet.db < osm-indexes.sql
+
+echo "Ready for import"