[ gpsdrive ] Problems with mapnik integration

enigma2176 enigma at thedonnerparty.com
Thu Apr 3 12:07:43 AKDT 2008



Guenther Meyer wrote:
> 
> Am Dienstag 25 März 2008 schrieb enigma2176:
>> After many tries and much dependency hunting, I have finally successfully
>> compiled mapnik 0.5.0 and gpsdrive 2.10svn18907042 in Ubuntu Gutsy.  I
>> loaded an OSM file for my state into mapnik using the technique described
>> at http://www.nabble.com/gpsdrive---openstreetmap-howto-td15193344.html
>> without any obvious errors.  I have run the sample programs in the mapnik
>> demo directory successfully.  However, when I start gpsdrive I don't get
>> the mapnik maps and get errors from gpsdrive.  Here is a sample session:
>>
> the best and easiest way to download and import the osm data into the
> postgis 
> database, and to set all the rights for the user you should use the script 
> mapnik-osm-updater.sh
> 

I downloaded OSM data for my state and loaded it using the options described
in the openstreetmap-howto post:

mapnik-osm-updater.sh --all-planet --no-mirror
--planet-file="/usr/local/share/mapnik/Utah.osm"


Guenther Meyer wrote:
> 
> start it without any options to see what you can do...
> [snip]
> this means usually, that the postgres database is not running or you don't 
> have the rights to access it.
> it is not a big issue, if you see this error. this only means, that you
> won't 
> see the POIs from osm inside the gpsdrive POI management.
> 
> if you fill and initialize your database with mapnik-osm-updater.sh this 
> should usually work.
> 
> [snip]
> 
> these errors come from the mapnik library.
> but even if you get the mapnik support enabled, you will get a segfault
> when 
> switching to mapnik mode.
> since the transition to mapnik 0.5 some things seem to have changed there, 
> what means, that we probably have to adapt our mapnik.cpp module...
> the mapnik developers have been contacted, but nobody has had the time
> yet, to 
> do anything.
> 
> until then, you could use the prerendered "tiles at home" maps.
> you can download them with the script gpsfetchmap.pl using the server 
> openstreetmap_tah.
> 

I have downloaded mapnik 0.4.0 and recompiled mapnik and gpsdrive-2.10pre4. 
I am able to get it compiled and when I launch gpsdrive I now have a "mapnik
mode" checkbox, but when I check it all I get is a blue screen with my
waypoints on it, I am not getting any maps.  If I try to use
"openstreetmap_tah" as the server argument in gpsfetchmap.pl the program
complains that it is not a valid server.  Should the map data I loaded with
mapnik-osm-updater be appearing here?  Is there a step I am missing somehow? 
What is the procedure for just loading the whole world from OSM?

I am also getting GTK errors from gpsdrive, the following error constantly
spews on the console while gpsdrive is running:

(gpsdrive:7405): Gdk-CRITICAL **: gdk_draw_pixbuf: assertion `GDK_IS_PIXBUF
(pixbuf)' failed

It doesn't appear to be affecting anything but I thought I would mention it.

Does anyone have the complete procedure for setting up gpsdrive with
mapnik/OSM?  Everything seems like it is compiling and installing right but
I am obviously missing a step somewhere since I can't see any maps in mapnik
mode.  Do I need to load the mapnik world boundaries file first or can I
just load the state file I downloaded?  

-- 
View this message in context: http://www.nabble.com/Problems-with-mapnik-integration-tp16246238p16470682.html
Sent from the GpsDrive mailing list archive at Nabble.com.



More information about the GPSdrive mailing list