[ gpsdrive ] gpsdrive, mapnik, openstreetmap and poi's
Guenther Meyer
d.s.e at sordidmusic.com
Tue Jun 3 10:18:10 AKDT 2008
Am Dienstag 03 Juni 2008 schrieb Ross Scanlon:
> Amazing what a fresh mind does (i originally wrote this at midnight last
> night).
>
> I have solved this now so no need to answer.
>
I still try to answer; for all the people who like explanations...
First, I would appreciate that, if you write down a summary, how to get
everything working on ubuntu!
Q: How can I change the colours used by/with mapnik?
A: The colors for mapnik are set in the file ~/.gpsdrive/osm.xml which is
created from /usr/share/gpsdrive/osm-template.xml on first run.
Q: When trying to access the database for poi's it keeps giving an error.
I've narrowed this down to the fact there is no column poi in the table
planet_osm_points. What should have put this column into the database
table?
A: When GpsDrive is compiled with mapnik support, and the postgis database
for mapnik is available, GpsDrive can use the Points of Interest stored
there. Normally the database should be filled with the script
"mapnik-osm-updater.sh", which will also create the 'poi' column
necessary to use this feature.
Q: How can I access all my mysql poi's from previous gpsdrive installation?
A: As of version 2.10pre5 GpsDrive stores its waypoints in an sqlite data-
base. the mysql database used before is not necessary anymore.
To get your waypoints from that mysql database to the new structure, you
can export your data to a GPX file with 'poi-manager -e -f FILE.GPX',
which can then be imported with 'poi-import.pl -f FILE.GPX'.
But take care, the import script just throws the waypoints into the
database without any dupe checking!
Q: Are the POI in the postgres osm database or somewhere else?
A: There are two databases used for storing points:
All user created data and temporary points are stored in an sqlite file
in the users home directory (~/.gpsdrive/waypoints.db), which will be
created, if it's not existing there.
If mapnik is available, the OpenstreetMap points stored in the postgis
database can also be used (Access is readonly!). This is also possible,
when the displayed map is not rendered from the mapnik database (Mapnik
mode off).
Q: How is the script gpsfetchmap.pl related to mapnik?
A: With this script, you can download bitmap images to use as maps.
If mapnik mode is enabled, the maps to display are rendered live directly
from the postgis database on your system. You don't have to download
anything with gpsfetchmap.pl to use this feature. Please have a look at
mapnik-osm-updater.sh, to see how to create this database and fill it
with data from the OpenStreetMap project.
-------------- 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/20080603/464dc3fb/attachment.bin>
More information about the GPSdrive
mailing list