[ gpsdrive ] [gpsdrive] install-mapnik-osm.txt

haylocki haylocki at yahoo.co.uk
Tue Aug 21 01:21:52 AKDT 2007



Joerg Ostertag (gpsdrive Munich/Germany) wrote:
 

> Sorry, the description had some mayor bug. I updated it on svn. Can you
> please 
> try again and give me feedback if it works like described now.

Hi, thanks for updating the file.


The first thing I would like to note is that the comments at the top of the
file suggest installing the "openstreetmap-mapnik-world-boundaries" and
"Openstreetmap-Mapnik-Data" packages, but there is no information explaining
where the packages can be found.

Secondly, postgresql-8.2-postgis is not yet available on Ubuntu Feisty, so I
:

sudo gedit /etc/apt/sources.list
replace feisty with gutsy
save file
sudo apt-get update
sudo apt-get install postgresql-8.2-postgis
undo replace in gedit (now back to feisty)
save file
exit gedit
sudo apt-get update

The command :

 sudo tar -xvjf /home/${user_name}/osm/world_boundaries.tar.bz2

ends with the error :

bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Which I think is a problem with the archive.
I have downloaded the file twice.
As it takes ~4 hours on my connection, I don't want to download it again.

There is a # at the start of this line :

  # sudo -u postgres createdb -T template0 -Upostgres  -EUTF8 gis

Which I think should be removed.

In the group of lines which insert the data into the database :

The last line :

-e "^CREATE TYPE$" \

does not need the "\"

There are three lines :

-e "^ALTER OPERATOR$" \
-e "^CREATE OPERATOR$" \
-e "^ALTER OPERATOR$" \

Are both -e "^ALTER OPERATOR$" \  lines needed (I know nothing about
postgresql).

Copying the group of lines from Gedit and pasting them into a terminal
causes this :

 bunzip2 -dc /home/${user_name}/osm/planet/planet.osm.sql.bz2 | \
>         sed "s/tweety/$user_name/g;s/www-data/$user_name/g" | \
> world_boundaries/sudo -u postgres psql -Upostgres gis | \
> world_boundaries/grep -v \
> world_boundaries/-e "^ALTER FUNCTION$" \
> world_boundaries/-e "^ALTER TABLE$" \
> world_boundaries/-e "^CREATE CAST$" \
> world_boundaries/-e "^CREATE FUNCTION$" \
> world_boundaries/-e "^CREATE TABLE$" \
> world_boundaries/-e "^DROP FUNCTION$" \
> world_boundaries/-e "^SET$" \
> world_boundaries/-e "^ALTER OPERATOR$" \
> world_boundaries/-e "^CREATE OPERATOR$" \
> world_boundaries/-e "^ALTER OPERATOR$" \
> world_boundaries/-e "^ALTER AGGREGATE$" \
> world_boundaries/-e "^ALTER DATABASE$" \
> world_boundaries/-e "^ALTER OPERATOR CLASS$" \
> world_boundaries/-e "^ALTER TYPE$" \
> world_boundaries/-e "^COMMENT$" \
> world_boundaries/-e "^CREATE AGGREGATE$" \
> world_boundaries/-e "^CREATE LANGUAGE$" \
> world_boundaries/-e "^CREATE OPERATOR CLASS$" \
> world_boundaries/-e "^CREATE TYPE$"

If I delete the <tab> at the begining of the lines and then copy/paste it
seems to work ok.

Running the commands reports the error :

ERROR:  database "gis" already exists

But connects to the gis datbase and continues to fill the database.

Running gpsdrive I finally have the "mapnik mode" option, but when I select
it gpsdrive crashes :

gpsdrive (c) 2001-2006 Fritz Ganter <ganter at ganter.at>

Version 2.10svn15404220
$Id: gpsdrive.c 1524 2007-08-08 23:04:49Z dse $

/usr/local/bin/gpsdrive: symbol lookup error:
/usr/lib/mapnik/input/postgis.so: undefined symbol: fribidi_log2vis

Thanks for your help.

Ian



-- 
View this message in context: http://www.nabble.com/install-mapnik-osm.txt-tf4298358.html#a12251149
Sent from the GpsDrive mailing list archive at Nabble.com.



More information about the GPSdrive mailing list