[GIS] Renderd outputs “failed to initialize projection 4326”

epsggenerate-tilesmapnikopenstreetmap

I'm setting up a tile server using the guide provided here.

I have everything set up. proj4 is installed in version 4.8.0. The espg file is existant, I ran an xmllint over my xml style file without errors. mod_tile is also running without problems. I also have a fully populated PostGIS database running. I used osm2pgsql.

The problem is starting renderd. It gives me the following error message:

renderd[25257]: An error occurred while loading the map layer 'default': 
failed to initialize projection with: '+init=epsg:4326'  
encountered during parsing of layer 'necountries' in Layer at 
line 58 of '/src/mapnik-style/osm.xml'

(I inserted line breaks for legibility)

It's the only error message. Everything else works fine.

I checked for the espg file at /usr/local/share/proj/epsg which is present and contains (of course) the WGS84 definition.

I googled around but couldn't find something. There were hints to the proj4 library. But since it's installed in version 4.8.0, i can't see the problem.

Thanks for the help!

Best Answer

I fix the same issue on CentOS machine by installing proj-epsg package.

Related Question