1

I'm following the Switch2OSM guide to the tee. I have not had any trouble I couldn't figure out until now. I've typed the following according to instruction:

sudo mkdir /var/run/renderd

sudo chown username /var/run/renderd

sudo -u username renderd -f -c /usr/local/etc/renderd.conf

I get this error:

renderd[8641]: An error occurred while loading the map layer 'default': Could not create datasource for type: 'shape' encountered during parsing of layer 'land-low' in Layer at line 48 of '/usr/local/share/maps/style/OSMBright/OSMBright.xml'renderd[8641]: An error occurred while loading the map layer 'default': Could not create datasource for type: 'shape' encountered during parsing of layer 'land-low' in Layer at line 48 of '/usr/local/share/maps/style/OSMBright/OSMBright.xml'renderd[8641]: An error occurred while loading the map layer 'default': Could not create datasource for type: 'shape' encountered during parsing of layer 'land-low' in Layer at line 48 of '/usr/local/share/maps/style/OSMBright/OSMBright.xml'

4
  • A famous search engine will return various results for "Could not create datasource for type: 'shape'". Did you already try the corresponding solutions?
    – scai
    Commented Jun 25, 2015 at 20:01
  • I did yes, Most problems I found were not exactly the same, but I did resolve the issue. Thanks for the response.
    – btald1331
    Commented Jun 25, 2015 at 20:16
  • 1
    Please tell us how you did resolve your problem.
    – scai
    Commented Jun 25, 2015 at 20:17
  • 2
    The problem deals with /usr/local/etc/renderd.conf. The guide SWITCH2OSM gives you a specific path to place in the variable plug_in. Obviously plug_in contains the path to mapnik plugins needed to start the server. I used the find command to search for mapnik to find the directory the plug ins where actually in. Copy that directory to the plug_in variable in renderd.conf and save. I have no idea why the paths would be different, but that was the problem.
    – btald1331
    Commented Jun 25, 2015 at 20:26

3 Answers 3

1

I don't build mapnik from source, just install the libmapnik2.2 (libmapnik) package on ubuntu 14.04.3. It put all the input plugins to /usr/lib/mapnik/2.2/input, not /usr/lib/mapnik/input.

So, change the plugins_dir in /usr/local/etc/renderd.conf, and it runs well.

[mapnik]
;plugins_dir=/usr/lib/mapnik/input
plugins_dir=/usr/lib/mapnik/2.2/input
0

to find your mapnik plugins dir type the command

mapnik-config --input-plugins

Then copy the result (plugin path) and paste in renderd.conf file

0
-1

if you have used 14.04 then mapnik path is

[mapnik]
plugins_dir=/usr/local/lib/mapnik/input

Not the answer you're looking for? Browse other questions tagged or ask your own question.