@wavded

JavaScript, Programming

4 notes &

Installing MapProxy on CentOS

MapProxy is an excellent tool for doing map tile caches and the like.  I’m still diving into all of what it has to offer but spend a bit of time getting it to work on CentOS 5, so I thought I’d share what I ended up doing to hopefully save you some time:

First you will need an updated Python 2.5 or greater plus some development packages in order to use all the MapProxy features:

rpm -Uvh 'http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
yum install libffi
rpm -Uvh 'http://yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm'
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CHL
yum install make gcc gcc-c++ python26 python26-devel zlib-devel freetype freetype-devel libjpeg-devel

Next you setup your virtual environment:

wget 'http://bitbucket.org/ianb/virtualenv/raw/1.4.8/virtualenv.py'
python26 virtualenv.py --distribute ~/venv/mapproxy
source ~/venv/mapproxy/bin/activate

Then you actually install MapProxy:

pip install MapProxy

Lastly you setup an MapProxy instance:

paster create -t mapproxy_conf mymapproxy

Follow more details from here using the MapProxy documentation at http://mapproxy.org/docs/latest/install.html#create-a-configuration.

Enjoy!

  1. wavded posted this