[ gpsdrive ] Mapnik Projection used by gpsdrive

Jan-Benedict Glaw jbglaw at lug-owl.de
Thu Sep 18 09:02:11 AKDT 2008


Hi!

Some time ago, I started another small GTK+ project[1]displaying
Mapnik rendered cards. (Aimed at helping OSM tagging amenities like
post boxes, public phones, ...)

I started off gpsdrive's mapnik.cpp and used gpsdrive's osm.xml
initially.

These days, I tried to use current OSM's osm.xml file, which is quite
similar to gpsdrive's version (so that I guess it was a copy at some
time.) However, that didn't work, because Debian's old version of
osm2pgsql didn't convert the [power_source] tag, which led to Mapnik
not displaying basically all of the amenity layer.

After updating osm2pgsql to the SVN version, I was able to use my app
with it, but the card display was quite off. Projection seems to have
changed. Gpsdrive used to use "+proj=merc +datum=WGS84", whereas OSM
(and the default settings of osm2pgsql; the old behavior can be forced
with the `-M' switch) uses "+proj=merc +a=6378137 +b=6378137
+lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null 
+no_defs +over".

I'd like to file a bug report for osm2pgsql, but gpsdrive would need
to either touch the docs (add -M to the osm2pgsql call) or change its
projection method. (And if gpsdrive wants to follow osm.xml, it would
need the new osm2pgsql, too, to get the additional table column
referenced there.)

What are your suggestions in this case?

MfG, JBG
[1] wget http://lug-owl.de/~jbglaw/gpsdisplay/gpsdisplay-latest.tar.gz
    git clone http://lug-owl.de/~jbglaw/gpsdisplay.git

-- 
      Jan-Benedict Glaw      jbglaw at lug-owl.de              +49-172-7608481
  Signature of:                          Zensur im Internet? Nein danke!
  the second  :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080918/1a900a19/attachment.bin>


More information about the GPSdrive mailing list