User:Ngt/MapnikOnWindows
Hi, after hours of searching the web, reading how-tos and trying on my own, I finally came to the conclusion, that I have to do this tutorial...
I just wanted to have the mapnik-toolchain on my windows pc, rendering some (larger) areas with a custom style. I tried some Applications, but it was not what I wanted.. So most of the tutorials were for linux distributions and I didn't want to waste hours hacking commands in the shell.
First, I want to thank User:Ajoessen for his great how-to! I never would have succeded without it.
Next: This how-to is for people, who want to create some tiles on their machines. I do not recommend this for a production-environment or internet-servers! The configuration might not be the fast or best, it worked for me, and if you know, how I can improve this config, please let me know.
Installation
Required:
Windows Xp or Windows 7
At least 2GB RAM
Harddisk: Depends on how large your rendered area is and how many zoom-levels you want. The more free space the better..
We will use (and install):
Python 2.7.3
PostgreSQL v9.1
postgis v1.5
mapnik v2.0.1rc0
osm2pgsql
bsdtar
wget
Please Note: There are newer versions of some components available, but due to some changes these versions need large changes in the configuration and will not work with this how-to!
Prerequisits
http://downloads.sourceforge.net/gnuwin32/libarchive-2.4.12-1-setup.exe http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe
Download these two, install it in the default location (c:\Program Files (x86)\GnuWin32)
PostgreSQL
http://www.enterprisedb.com/products-services-training/pgdownload#windows
Download PostgreSQL 9.1.5 Win x86-32
During the installation use this values:
User Name: postgres
Password: osm
Port: 5432
Database Name: postgis
Choose to launch StackBuilder on exit.
Stack Builder
Select the server you created. In the following list enable PostGIS 1.5 for PostgreSQL unter Spatial Extensions and press next. Install it in the default directory (c:\[..]\PostgreSQL\9.1\).
Python
http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
Install in C:\Python27 as given per default.
mapnik
https://github.com/downloads/mapnik/mapnik/mapnik-2.0.1rc0.zip
Extract it EXACTLY in c:\mapnik-2.0.1rc0\ or mapnik won't find the plugins
world_boundaries
with this script, the following files are being downloaded and installed. You do not need to download them manually!
http://tile.openstreetmap.org/processed_p.tar.bz2 http://tile.openstreetmap.org/shoreline_300.tar.bz2 http://tile.openstreetmap.org/world_boundaries-spherical.tgz http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/110m-admin-0-boundary-lines.zip