artemp/mapnik — Issue #410: Add mapnik to OSGEO4W
Author: artemp
Created: 2011-10-11 16:17:14+00:00
State: open
Labels: Windows_Binaries

This is what I did to get mapnik to work under OSGEO4W:

1) unzip files in [http://prdownload.berlios.de/mapnik/mapnik-0.6.1-win32-py25.zip] to a temp directory.

2) Copy the mapnik files into the OSGEO4W directory structure.
{{{
cd mapnik_0_6_1
copy bin\* c:\osgeo4w\bin
xcopy /si include\mapnik c:\osgeo4w\include\mapnik
copy lib\*.dll c:\osgeo4w\bin
copy lib\*.lib c:\osgeo4w\bin
xcopy /si lib\mapnik c:\osgeo4w\lib\mapnik
xcopy /si site-packages\mapnik c:\osgeo4w\apps\python25\lib\site-packages\mapnik
}}}
3) Edit c:\osgeo4w\apps\python25\lib\site-packages\mapnik\paths.py to look like this:
{{{
mapniklibpath="c:/osgeo4w/lib/mapnik"
inputpluginspath=mapniklibpath + "/input"
fontscollectionpath = mapniklibpath + "/fonts"
}}}
I was able to test mapnik by installing and using the Quantumnik as well as nik2img.