[ gpsdrive ] [gpsdrive] Mapnik module

haylocki haylocki at yahoo.co.uk
Tue Oct 16 01:27:12 AKDT 2007



Hi, finished running the script, the latest osm2pgsql seems to run faster
than the old one.

Maybe there should be a note saying to compile osm2pgsql, as when I saw it
in my directory, I assumed I had downloaded it when I did an svn update, as
I forgot I had compiled it ages ago.

 mapnik-osm-updater.sh  --count_db now returns :

--------- Check Number of lines in Database
Password:
SELECT COUNT(*) from planet_osm_point;  =  367693
SELECT COUNT(*) from planet_osm_line;   =  3781844
SELECT COUNT(*) from planet_osm_polygon;        =  95197
SELECT COUNT(*) from planet_osm_roads;  =  504765

which looks good to me.

Unfortunately when I run gpsdrive, I now get :

 Could not init Mapnik!

I installed mapnik thus :

ian at thinkpad-t21-2:~/mapnik-0.4.0$ sudo python scons/scons.py install 
PGSQL_INCLUDES=/usr/include/postgresql PGSQL_LIBS=/usr/lib/ 

scons: Reading SConscript files ...
Checking for main() in C library m... yes
Checking for main() in C library ltdl... yes
Checking for main() in C library png... yes
Checking for main() in C library tiff... yes
Checking for main() in C library z... yes
Checking for main() in C library jpeg... yes
Checking for main() in C library proj... yes
Checking for main() in C library pq... yes
Checking for main() in C++ library boost_thread... yes
Checking for main() in C++ library boost_filesystem... yes
Checking for main() in C++ library boost_regex... yes
Checking for main() in C++ library boost_program_options... yes
Bindings Python version... 2.5
Python 2.5 prefix... /usr
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.

When I try to import from mapnik I get :

ian at thinkpad-t21-2:~/mapnik-0.4.0$ python
Python 2.5.1 (r251:54863, May  2 2007, 16:56:35) 
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mapnik import *
>>> 

Cheers, Ian
-- 
View this message in context: http://www.nabble.com/Mapnik-module-tf4630428.html#a13229597
Sent from the GpsDrive mailing list archive at Nabble.com.



More information about the GPSdrive mailing list