[ gpsdrive ] [gpsdrive] Problems with mapnik integration
Guenther Meyer
d.s.e at sordidmusic.com
Tue Mar 25 12:19:47 AKDT 2008
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
start it without any options to see what you can do...
> Error: Could not find provider PostgreSQL in the current setup
>
> ** (GpsDrive:7923): CRITICAL **: gda_connection_add_event: assertion
> `GDA_IS_CONNECTION (cnc)' failed
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.
> Read 561 POI-Types from geoinfo.db
> ### WARNING: Failed to load image file 'c:/mapnik/symbols/rail_tunnel.png':
> cannot open image file c:/mapnik/symbols/rail_tunnel.png
> ### WARNING: Failed to load image file 'c:/mapnik/symbols/rail.png': cannot
> open image file c:/mapnik/symbols/rail.png
> ### WARNING: Failed to load image file 'c:/mapnik/symbols/rail.png': cannot
> open image file c:/mapnik/symbols/rail.png
> ### WARNING: Failed to load image file 'c:/mapnik/symbols/rail_tunnel.png':
> cannot open image file c:/mapnik/symbols/rail_tunnel.png
> ### WARNING: Failed to load image file 'c:/mapnik/symbols/rail_bridge.png':
> cannot open image file c:/mapnik/symbols/rail_bridge.png
> Cannot init mapnik. Mapnik support DISABLED: Could not create datasource.
> No plugin found for type 'shape' in layer 'world-1'
>
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080325/7e1b234b/attachment.bin
More information about the GPSdrive
mailing list