From: Kaj-Michael Lang Date: Mon, 4 Feb 2008 13:48:53 +0000 (+0200) Subject: Update. No need to create the tables and indexes by hand anymore. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fbe281a7f8c07ae16d4f0a384fda9a3834696f8;p=mapper Update. No need to create the tables and indexes by hand anymore. --- diff --git a/README b/README index 5f682c1..f312b2d 100644 --- a/README +++ b/README @@ -5,13 +5,7 @@ on using and creating OpenStreetMap data. Original maemo-mapper Copyright (C) 2006-2007 John Costigan. POI and GPS-Info code originally written by Cezary Jackiewicz. -All code after fork Copyright (C) 2007 Kaj-Michael Lang - -Major changes made: -* Splitting of source code -* Supports running on plain gtk+ and maemo -* Use OSM data for location information -* ... +All code after fork Copyright (C) 2007-2008 Kaj-Michael Lang Building -------- @@ -22,20 +16,18 @@ How to use OSM data ------------------- Right now this needs some manual work. -1. First create a sqlite3 database with tables: +1. Import data from planet.osm (or from a .osm file saved from JOSM) - sqlite3 osm-planet.db < docs/osm-tables.sql - sqlite3 osm-planet.db < docs/osm-indexes.sql + The planet must be bzip2:ed! -2. Then import data from planet.osm (or from a .osm file saved from JOSM) Run: - osm2db planet.osm + osm2db planet.osm.bz2 The full planet database can be quite large so you can limit the import to a box. This require 4 parameters, min lat/lon and max lat/lon: - osm2db planet.osm 60.0 18.0 70.0 33.0 + osm2db planet.osm.bz2 60.0 18.0 70.0 33.0 -3. Start mapper and configure the database path so it points the file just created. +2. Start mapper and configure the database path so it points the file just created.