Show
Ignore:
Timestamp:
03/05/10 11:55:17 (2 years ago)
Author:
bbinet
Message:

small updates for mapfish workshop (mainly typo)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/creating_webservice.html

    r3394 r3396  
    7070<div class="highlight-python"><pre>CREATE DATABASE mapfish_workshop TEMPLATE=postgis_template;</pre> 
    7171</div> 
    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> 
     72<p>Then, open the explorer, go into the <tt class="docutils literal"><span class="pre">~/mapfish/mapfish_workshop_fossgis2010/data</span></tt> 
    7373folder and extract the <tt class="docutils literal"><span class="pre">countries.zip</span></tt> file. And enter the following commands 
    7474to 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 
    7575<tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt> database:</p> 
    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> 
     76<div class="highlight-python"><pre>cd ~/mapfish/mapfish_workshop_fossgis2010/data 
     77shp2pgsql -s 4326 -I countries.shp countries | psql -d mapfish_workshop -U postgres</pre> 
    7878</div> 
    7979<p>You can start pgAdmin and connect to the <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt> database to check 
     
    8888</div> 
    8989<p>by this one:</p> 
    90 <div class="highlight-python"><pre>sqlalchemy.url = postgres://postgres:postgres@localhost:5433/mapfish_workshop</pre> 
     90<div class="highlight-python"><pre>sqlalchemy.url = postgres://postgres:postgres@localhost:5432/mapfish_workshop</pre> 
    9191</div> 
    9292<p>The connection string specifies that the <tt class="docutils literal"><span class="pre">postgres</span></tt> driver must be used, the 
    93 database system listens on <tt class="docutils literal"><span class="pre">localhost</span></tt> and on <tt class="docutils literal"><span class="pre">port</span></tt> 5433, and the name of 
    94 the database is <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt>. (if it&#8217;s not working, test also with port 5432, which is the normal port)</p> 
     93database system listens on <tt class="docutils literal"><span class="pre">localhost</span></tt> and on <tt class="docutils literal"><span class="pre">port</span></tt> 5432, and the name of 
     94the database is <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt>.</p> 
    9595</div> 
    9696<div class="section" id="creating-web-service"> 
     
    116116</li> 
    117117<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>&lt;env&gt; ~mapfish/MapFishApp&gt;paster mf-layer countries</pre> 
     118<div class="highlight-python"><pre>(env) $ paster mf-layer countries</pre> 
    119119</div> 
    120120</li> 
     
    130130<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, 
    131131restart <tt class="docutils literal"><span class="pre">MapFishApp</span></tt> with:</p> 
    132 <div class="highlight-python"><pre>&lt;env&gt; ~mapfish/MapFishApp&gt;paster serve --reload development.ini</pre> 
     132<div class="highlight-python"><pre>(env) $ paster serve --reload development.ini</pre> 
    133133</div> 
    134134<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 
     
    282282    <div class="footer"> 
    283283      &copy; Copyright 2009, Éric Lemoine, Cédric Moullet, François Van Der Biest. 
    284       Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.4. 
     284      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.5. 
    285285    </div> 
    286286  </body>