Hey guys! When rendering from PostgreSQL/PostGIS database by Python/Mapnik I receice the following ERROR:
I took the steps like in http://switch2osm.org/serving-tiles/manually-building-a-tile-server/ My OS is Windows. I imported my africa.osm by osm2pgsql to my database. Is it possible, that the whole thing only works with the whole planet_latest.osm? |
Hi, Did you install the proj library? Usually you get this kind of error if the library cannot be found by programs. If you're not using a package like OSGeo4W, you need to set the environment variables correctly. From the Windows proj4 README.txt: The mapnik installation guide for windows also mentions the proj4 library if you're planning on using epsg codes HTH Frank I'm guessing that there should be some backslashes in that?
(30 Mar '12, 16:10)
SomeoneElse ♦
Um, yes, of course. I saw them in the editor preview, but the actual view somehow ate them. I escaped them now ...
(30 Mar '12, 17:22)
frabron
Thx.. got bored looking at blank maps
(22 May '12, 08:24)
ronzulu
|
@frabon is right in that this error is related to mapnik not seeing the Proj4 libraries. I was able to fix this problem by creating an Environment Variable, I thought using the GDAL proj stuff was better than creating a redundant install. Of course, since I'm using true-blue WinXP32, I still needed to logout/login or reboot to apply the change. It definitely did the trick, though. |
Not sure about your problem, maybe you have to load the projection strings into your db (see Postgis docu for this). For your second question: I can confirm that osm2pgsql as well as the rest of the rendering stack works also with extracts, no need to use the whole planet. |