[ gpsdrive ] Mapnik module
Alex Cruz
elmonogrande at gmail.com
Tue Oct 16 03:17:11 AKDT 2007
On Monday 15 October 2007, Joerg Ostertag (gpsdrive Munich/Germany) wrote:
> > permissions for my user. Next, I ran ./mapnik-osm-updater.sh --count_db
> > --debug and this is all that came back:
>
> Did you run it as root?
I've run it as me, root, postgres, osm....same results. Very strange.
> > cannot read shape file
>
> This message normally tells us, mapnik cant read the workd boudaries
Fixed the location of world_boundaries in ~/.gpsdrive/osm.xml
I had only fixed the global file....I didn't know there was a local file. No
more errors about not reading the shape files.
>
> > I now have roads defined however, there are no names listed.
>
> This might be because the font-file used use for mapnik is hardcoded in
> src/mapnik.cpp. You might want to add a configuration parameter for this.
Modified the location of DejaVuSans and recompiled. Street names now display
beautifully. Like the code says, this might want to be a config option ;-)
> > >>> from mapnik import *
>
> This means you're missing the mapnik-python bindings. But you normally
> don't need them anyhow.
What's odd is that if I check to see what modules are installed, a number
of "mapnik" related modules are displayed. Guess if I don't need them, I'll
ignore this for now.
> Joerg
Joerg, thank you (and everyone else) very much for all of your help. Now, I
just need to sit down and try to document everything that I did in Gentoo to
make this work :-)
-alex
More information about the GPSdrive
mailing list