[ gpsdrive ] Mapnik module
Alex Cruz
elmonogrande at gmail.com
Mon Oct 15 20:25:38 AKDT 2007
The story so far:
I ran mapnik-osm-updater.sh --grant_db_users=* and that fixed the permissions
for my user. Next, I ran ./mapnik-osm-updater.sh --count_db --debug and this
is all that came back:
osm2pgsql SVN version 0.50-20071015 $Rev: 4895 $
Usage:
osm2pgsql [options] planet.osm
osm2pgsql [options[ planet.osm.{gz,bz2}
osm2pgsql [options] file1.osm file2.osm file3.osm
This will import the data from the OSM file(s) into a PostgreSQL database
suitable for use by the Mapnik renderer
Options:
-a|--append Add the OSM file into the database without removing
existing data.
-c|--create Remove existing data from the database. This is the
default if --append is not specified.
-d|--database The name of the PostgreSQL database to connect
to (default: gis).
-l|--latlong Store data in degrees of latitude & longitude.
-u|--utf8-sanitize Repair bad UTF8 input data (present in planet
dumps prior to August 2007). Adds about 10% overhead.
-s|--slim Store temporary data in the database. This greatly
reduces the RAM usage but is much slower.
-h|--help Help information.
-v|--verbose Verbose output.
--------- Check Number of lines in Database
I then ran "python scons/scons.py PREFIX=/usr PROJ_INCLUDES=/usr/include
PROJ_LIBS=/usr/lib" in order to fix the pathing for mapnik. When I start
gpsdrive from the command line, I receive this output:
gpsdrive -d -g 1280x800 -a -M desktop -s
SQL: connected to localhost as gast using geoinfo
Creating main window
Trying Kismet server
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
cannot read shape file
(gpsdrive:27570): Gtk-CRITICAL **: gtk_statusbar_push: assertion
`GTK_IS_STATUSBAR (statusbar)' failed
Read 502 POI-Types from /usr/local/share/map-icons/icons.xml
map_koord.txt reloaded
/home/alex/.gpsdrive/way.txt reloaded
I now have roads defined however, there are no names listed. Next, I ran
python to check the mapnik module. The output:
python
Python 2.4.4 (#1, Feb 20 2007, 16:28:20)
[GCC 4.1.2 (Gentoo 4.1.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mapnik import *
>>>
Any thoughts as to why the street names are not displaying?
-alex
P.S. I install the world boundaries, too.
On Monday 15 October 2007, Joerg Ostertag (gpsdrive Munich/Germany) wrote:
> On Montag 15 Oktober 2007, Alex Cruz wrote:
> > Ok, now that I have successfully imported the planet osm file into
> > postgresql, when choosing the "Mapnik Mode" option in gpsdrive, all I get
> > is a lovely pastel blue (or green depending on your eyesight) box and no
> > maps. Is there a command line method to validate that all of this is
> > working correctly?
>
> Try two things:
> mapnik-osm-updater.sh --grant_db_users=*
>
> Then start gpsdrive from the commandline and see if you get any errors?
>
> And: Did you install the world boundaries?
>
> -
>
> Joerg
>
> _______________________________________________
> GPSdrive mailing list
> GPSdrive at lists.gpsdrivers.org
> http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
More information about the GPSdrive
mailing list