forked from andrewxhill/MOL
-
Notifications
You must be signed in to change notification settings - Fork 2
Layer Workflow Step by step for Windows
tucotuco edited this page Sep 12, 2011
·
5 revisions
- Go to http://code.google.com/p/msysgit/downloads/list?can=3
- Download the first program listed (“Full installer for official Git for Windows”)
- Run the .exe file and follow the instructions
- Open Git GUI
- Select Clone Existing Repository
- Enter https://github.com/andrewxhill/MOL.git for source location
- Enter C:\MOL for target directory
- Select Full Copy
- Click Clone
- http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python
- Download the version for Windows
- Run the .msi file and follow the instructions
- Note: must clone the MOL repository using Git before this step
- Open Google App Engine Launcher
- Click File Create New Application
- Application Name: mol-lab
- Parent Directory: C:\MOL\app
- Port: 8080
- Go to http://www.python.org/download/releases/2.7.2/ for the latest release of Python (as of June 2011)
- Download the Windows x86 MSI Installer (2.7.2)
- Run the .msi and follow the instructions
- Right-click on My Computer
- Select Advanced system settings
- Select Environment Variables
- Under System Variables, select Path and click Edit
- In Variable Value add C:\Python27 (using ; to separate from other values already present), or the path to where Python is installed
- Click OK, OK, OK This will allow the computer to find python.exe when typing python in the command prompt. Note: If you have several versions of Python, whichever Value is first in the Variable Value of System Path will be the version that is called.
- Go to http://pyyaml.org/wiki/PyYAML
- Download the appropriate installer for your version of Python
- Run the .exe file and follow the instructions
- Go to http://pypi.python.org/pypi/simplejson/
- Download the archive file
- Unzip the archive file
- Open the command prompt
- Change the directory (cd) to the folder you just unzipped (i.e. C:\Users\Cody\Downloads\simplejson-2.2.1)
- Type
python setup.py install - You can now delete the unzipped folder you downloaded
- Go to http://www.gisinternals.com/sdk/
- Select the appropriate version (latest stable version compiled daily) for Win32
- Download the Generic installer for the GDAL core components
- Download the Installer for the GDAL python bindings for the appropriate version of python
- Run the .exe file for core components and follow the instructions
- Run the .exe for the python bindings and follow the instructions
- Right-click on My Computer
- Select Advanced system settings
- Select Environment Variables
- Under System Variables, select Path and click Edit
- In Variable Value add C:\Program Files (x86)\GDAL (using ; to separate from other values already present), or wherever the GDAL package is installed
- Click OK, OK, OK
- Open the command prompt
- Type
python
>>>import YAML
>>>import simplejson
>>>import gdal
>>>exit()
If any of the import statements gives you an error message, the corresponding site package did not install correctly.
- Open the command prompt
- Change directory to C:\MOL\workflow\mol-data
- Type
python loader.py –help
- Open Google App Engine Launcher
- Select the application mol-lab and click Run
- Open the command prompt
- Change directory to C:\MOL\workflow\mol-data
- Type
python loader.py --url=http://localhost:8080/_ah/remote_api --config_file=bulkload.yaml –V - Hit Enter when prompted for Email:
- Open your browser
- Go to http://localhost:8080/_ah/admin/datastore
- Select the Entity type you want to look at and click on the List Entities button to see them.
Note: Google App Engine must still be running Stop Google App Engine when you are done.