Changeset 3382 for sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/creating_webservice.html
- Timestamp:
- 03/02/10 06:26:55 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/creating_webservice.html
r3379 r3382 70 70 <div class="highlight-python"><pre>CREATE DATABASE mapfish_workshop TEMPLATE=template_postgis;</pre> 71 71 </div> 72 <p>Then, open the explorer, go into the <tt class="docutils literal"><span class="pre"> C:\MapFish\mapfish_workshop\data</span></tt>72 <p>Then, open the explorer, go into the <tt class="docutils literal"><span class="pre">/home/live/mapfish/mapfish_workshop_fossgis2010/data</span></tt> 73 73 folder and extract the <tt class="docutils literal"><span class="pre">countries.zip</span></tt> file. And enter the following commands 74 74 to import the <tt class="docutils literal"><span class="pre">countries</span></tt> Shapefile as a table named <tt class="docutils literal"><span class="pre">countries</span></tt> in the 75 75 <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt> database:</p> 76 <div class="highlight-python"><pre> C:\MapFish>cd mapfish_workshop\data77 C:\MapFish\mapfish_workshop\data>"C:\Program Files\PostgreSQL\8.3\bin\shp2pgsql.exe" -s 4326 -I countries.shp countries | "C:\Program Files\PostgreSQL\8.3\bin\psql.exe"-d mapfish_workshop -U postgres</pre>76 <div class="highlight-python"><pre>cd /home/live/mapfish/mapfish_workshop_fossgis2010/data 77 ~mapfish/mapfish_workshop_fossgis2010/data$ shp2pgsql -s 4326 -I countries.shp countries | psql -d mapfish_workshop -U postgres</pre> 78 78 </div> 79 79 <p>You can start pgAdmin and connect to the <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt> database to check … … 116 116 </li> 117 117 <li><p class="first">generate the web service code with the <tt class="docutils literal"><span class="pre">mf-layer</span></tt> command:</p> 118 <div class="highlight-python"><pre><env> C:\MapFish\MapFishApp>paster mf-layer countries</pre>118 <div class="highlight-python"><pre><env> ~mapfish/MapFishApp>paster mf-layer countries</pre> 119 119 </div> 120 120 </li> … … 130 130 <p>If you killed <tt class="docutils literal"><span class="pre">paster</span> <span class="pre">serve</span></tt> or if you did not add the <tt class="docutils literal"><span class="pre">--reload</span></tt> switch, 131 131 restart <tt class="docutils literal"><span class="pre">MapFishApp</span></tt> with:</p> 132 <div class="highlight-python"><pre><env> C:\MapFish\MapFishApp>paster serve --reload development.ini</pre>132 <div class="highlight-python"><pre><env> ~mapfish/MapFishApp>paster serve --reload development.ini</pre> 133 133 </div> 134 134 <p>You can now open <a class="reference external" href="http://localhost:5000/countries?limit=1">http://localhost:5000/countries?limit=1</a> in your browser, you
