Created
March 21, 2015 14:35
-
-
Save stringfellow/ef1f81eb970bd8ce325a to your computer and use it in GitHub Desktop.
MapProxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.