gpsdrive's Mapnik doesn't start since stuff changed
|Reported by:||hamish||Owned by:|
|Component:||OSGeoLive||Keywords:||gpsdrive, kosmo, gvSIG, postgis2, 6.5|
gpsdrive runs Mapnik to generate map tiles on-the-fly using the OSM data loaded into PostGIS and shapefiles from Natural Earth for the coastline, world city names, etc.
This failed in beta1.iso (cleanly, it just reverts to static satellite image backdrop) since the shapefiles moved, specifically 10m_land.shp isn't where it used to be and had a name change. I've fixed those in SVN now, but the transition to PostGIS 2 now causes a crash:
terminate called after throwing an instance of 'mapnik::datasource_exception' what(): : ERROR: function asbinary(geometry) does not exist LINE 1: SELECT AsBinary("way") AS geom,"aeroway","amenity","building... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. Full sql was: 'SELECT AsBinary("way") AS geom,"aeroway","amenity","building","highway",\ "landuse","leisure","man_made","military","natural","power","railway","tourism" from \ (select * from planet_osm_polygon order by z_order,way_area desc)\ as leisure WHERE "way" && SetSRID('BOX3D(-134041.6 6972313.6,-130457.6 6975180.799999999)'::box3d, 900913)' Aborted (core dumped)
hopefully a PostGIS expert can provide some tips, I'm not seeing any asbinary() or AsBinary() in the gpsdrive source code.
in the mean time I've just set mapnik=0 in the ~/.gpsdrive rc file (see gisvm/bin/install_gpsdrive.sh) to disable mapnik mode.
thanks for any pointers, Hamish