Hi, I am trying to get the german mapnik style to work on Ubuntu 12.04 as proposed by the SVN README:
I create my database using sachsen.osm from geofabrik and osm2pgsql from the ppa:kakrueger/openstreetmap (osm2pgsql SVN version 0.81.0 (64bit id space))
Then I create the views that are supposed to be used by the germany mapnik style:
Then I create a new directory "mapnik-de" containing the mapnik-repo. I copy mapnik-german ontop of that (is that the way to go?) and copy all the template files to inc files in mapnik-de/inc-de/. I use mapnik-de as working directory. Now, when I try to generate my xml file
I get the following error:
I am using mapnik 2.1.0 from the ppa:mapnik/v2.1.0 To me it looks like the generated views are not correctly accessed. When I use a custom default.style file with osm2pgsql that contains "wood" and a couple more, then this error does not show and I can create tiles. I am not used to postgresql or postgis. Maybe I just understood something wrong? I took a look with pgadmin3 and there are the four views and except view_osmde_roads they all contain the column "wood". asked 29 Dec '12, 14:24 skaiwalker |
Your Mapnik style is trying to access the tables directly instead of the generated views. I would assume that your prefix entity in settings.xml.inc is wrong. It should contain <!ENTITY prefix "view_osmde"> instead of <!ENTITY prefix "planet_osm"> Sven answered 29 Dec '12, 15:40 giggls Thanks Sven, But there is another problem with the database. My generate_xml.py command now looks like this:
And it works. When I run generate_tiles.py, it only generates 0/0/0.png and I get errors like this:
What does that mean? Cheers!
(29 Dec '12, 18:57)
skaiwalker
|
After some googling I found this function "populate_geometry_columns()" and it seemed to do the job:
Creating tiles with german style now works. answered 29 Dec '12, 20:10 skaiwalker |