On 23/04/2011 23:06, Jon Burgess wrote: > On Sat, 2011-04-23 at 21:16 +0100, David James wrote: >> I'm running Fedora 14. >> >> I've installed postgresql, postgis and mapnik (0.7.1). All these have >> been installed using yum install with default repositories. >> >> I can't get mapnik to work with a PostGIS datasource - it says "Could >> not create datasource. No plugin found for type 'postgis'". >> >> I've googled for this message and tried following the suggestions I've >> found. However, I need some more clues ... >> >> Most of the articles I've found talk about the postgis.input file being >> missing - there is a postgis.input file (dated Jul 28 2010, size 254556) >> in /usr/lib/mapnik/input >> >> What do I look for next, please? > The mapnik library needs to be told where to find the plugins and your > application may be telling mapnik to look in the wrong location. What > application are you using? > > Generally the plugin path is configurable in the application, e.g. for > mod_tile / renderd it is this line in the renderd.conf: > > plugins_dir=/usr/local/lib64/mapnik2/input > > The latest Mapnik code includes the search path in the error message to > make this more obvious.
Thank you, you've pointed me in the right direction. I'm using a copy of Nick Whitelegg's code for drawing contours from Ordnance Survey Landform Panorama on top of Ordnance Survey Vectormap District raster tiles (from http://wiki.openstreetmap.org/wiki/VMD_plus_LFP_plus_OSM). The source code contains datasource_cache::instance()->register_datasources("/usr/lib/mapnik/0.7/input"); This was working for me on a Debian system. I've just moved everything across to a Fedora 14 system, and I now realise that the path to the postgis.input file is /usr/lib/mapnik/input (the "0.7" has gone away in the move between systems). I don't think that was anything I did deliberately, but, no matter, I've changed that line and re-built the application and now the application is working. Thanks again. David > Jon > > > > > -- David James [email protected] _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

