This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Running generate_image gives “features only present in Mapnik version 0.7.1” error

0

I'm getting this error...

"RuntimeError: This map uses features only present in Mapnik version 0.7.1 and newer (in node Map)"

What does it mean?

I've just run osm2pgsql and it seemed to do it's thing (populate the database, though I'm not sure what the best way to check that is) The error occurs when I run ./generate_image.py By "this map" I presume it means the data which I've just loaded into the DB.

So maybe I have a an osm2pgsql<->Mapnik version mismatch. I'm on Mapnik v0.7.0 and osm2pgsql0.66

asked 08 Dec '10, 02:24

Harry%20Wood's gravatar image

Harry Wood
9.5k2588128
accept rate: 14%

edited 21 Jan '11, 09:20

TomH's gravatar image

TomH ♦♦
3.3k83943


One Answer:

3

It has nothing to do with osm2pgsql - this is purely related to the osm.xml stylesheet. Basically the stylesheet maintainers have started using new Mapnik features that are only available in >= Mapnik 0.7.1, and this is an error they intended to be triggered since your Mapnik version is not the latest. If you are not able to upgrade to mapnik 0.7.1 then you can remove the 'minimum_version' item at the top of the <map ...=""> and go on your way - you just may run into other errors or bugs due to lacking functionality in Mapnik 0.7.0 (most likely you will need to add 'width' and 'height' back to all symbolizers that read in png symbols).

answered 08 Dec '10, 07:12

springmeyer's gravatar image

springmeyer
7112
accept rate: 100%

Source code available on GitHub .