| Line | |
|---|
| 1 | MapFishSample |
|---|
| 2 | ============= |
|---|
| 3 | |
|---|
| 4 | MapFishSample is a MapFish application. The goal of this sample application is twofold: |
|---|
| 5 | |
|---|
| 6 | * provide a demo on http://demo.mapfish.org |
|---|
| 7 | * provide some sample code for application developers |
|---|
| 8 | |
|---|
| 9 | Install |
|---|
| 10 | ------- |
|---|
| 11 | |
|---|
| 12 | MapFishSample is built and deployed using zc.buildout |
|---|
| 13 | (<http://www.buildout.org/>). |
|---|
| 14 | |
|---|
| 15 | For now the only way to install MapFishSample is from its sources |
|---|
| 16 | (MapFishSample isn't distributed on <http://pypi.python.org>). |
|---|
| 17 | |
|---|
| 18 | Get the sources: |
|---|
| 19 | |
|---|
| 20 | $ svn co http://svn.mapfish.org/svn/mapfish/sample/trunk/ MapFishSample |
|---|
| 21 | |
|---|
| 22 | Build the buildout environment: |
|---|
| 23 | |
|---|
| 24 | $ cd MapFishSample |
|---|
| 25 | $ python bootstrap.py --distribute --version 1.5.2 |
|---|
| 26 | |
|---|
| 27 | Build and deploy the application: |
|---|
| 28 | |
|---|
| 29 | $ buildout/bin/buildout -c buildout_dev.cfg |
|---|
| 30 | |
|---|
| 31 | When buildout_dev.cfg is used on the buildout command line the application will |
|---|
| 32 | use <http://demo.mapfish.org/mapfishsample/2.0/mapserv> as the WMS URL. To use |
|---|
| 33 | a local mapserv use buildout_main.cfg. The latter is what we use when deploying |
|---|
| 34 | MapFishSample on demo.mapfish.org. |
|---|
| 35 | |
|---|
| 36 | Run |
|---|
| 37 | --- |
|---|
| 38 | |
|---|
| 39 | To run MapFishSample in the Paste HTTP Server use this: |
|---|
| 40 | |
|---|
| 41 | $ buildout/bin/paster serve --reload development.ini |
|---|
| 42 | |
|---|
| 43 | To run MapFishSample in Apache mod_wsgi look at the apache/README.txt file. |
|---|