Skip to content

Instantly share code, notes, and snippets.

@stringfellow
Created March 21, 2015 14:35
Show Gist options
  • Save stringfellow/ef1f81eb970bd8ce325a to your computer and use it in GitHub Desktop.
Save stringfellow/ef1f81eb970bd8ce325a to your computer and use it in GitHub Desktop.
MapProxy
call "C:\OSGeo4w64\bin\o4w_env.bat"
IF NOT EXIST C:\mapproxy (
easy_install virtualenv
mkdir C:\mapproxy
cd C:\mapproxy
virtualenv --system-site-packages env
env\Scripts\activate
pip install pyreadline MapProxy ipython lxml
mapproxy-util create -t base-config mapactionproxy
cd mapactionproxy
mapproxy-util serve-develop mapproxy.yaml
) ELSE (
cd C:\mapproxy
env\Scripts\activate
cd mapactionproxy
mapproxy-util serve-develop mapproxy.yaml
)
@stringfellow
Copy link
Author

This will install MapProxy into a virtualenv (to try and keep it as separate as possible, though it still needs the OSGeo environment and system site-packages). On first run it will install virtualenv into the OSGeo environment and then create all the directories needed, along with the virtualenv, and install packages into it. Then it will create a basic config and serve MapProxy. Subsequent runs will just move into the environment and run MapProxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment