From 0877287d33808740652388aba18519b9d06ab07e Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 18 Oct 2007 12:41:52 +0300 Subject: [PATCH] Add two db helper scripts --- docs/import-fi.sh | 8 ++++++++ docs/new-planet-db.sh | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 docs/import-fi.sh create mode 100755 docs/new-planet-db.sh diff --git a/docs/import-fi.sh b/docs/import-fi.sh new file mode 100755 index 0000000..78a0a86 --- /dev/null +++ b/docs/import-fi.sh @@ -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 index 0000000..25056f5 --- /dev/null +++ b/docs/new-planet-db.sh @@ -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" -- 2.39.5