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/_sources/creating_webservice.txt

    r3394 r3396  
    3131    CREATE DATABASE mapfish_workshop TEMPLATE=postgis_template; 
    3232 
    33 Then, open the explorer, go into the ``/home/live/mapfish/mapfish_workshop_fossgis2010/data`` 
     33Then, open the explorer, go into the ``~/mapfish/mapfish_workshop_fossgis2010/data`` 
    3434folder and extract the ``countries.zip`` file. And enter the following commands 
    3535to import the ``countries`` Shapefile as a table named ``countries`` in the 
    3636``mapfish_workshop`` database:: 
    3737     
    38     cd /home/live/mapfish/mapfish_workshop_fossgis2010/data 
    39     ~mapfish/mapfish_workshop_fossgis2010/data$ shp2pgsql -s 4326 -I countries.shp countries | psql -d mapfish_workshop -U postgres 
     38    cd ~/mapfish/mapfish_workshop_fossgis2010/data 
     39    shp2pgsql -s 4326 -I countries.shp countries | psql -d mapfish_workshop -U postgres 
    4040 
    4141You can start pgAdmin and connect to the ``mapfish_workshop`` database to check 
     
    5454by this one:: 
    5555 
    56     sqlalchemy.url = postgres://postgres:postgres@localhost:5433/mapfish_workshop 
     56    sqlalchemy.url = postgres://postgres:postgres@localhost:5432/mapfish_workshop 
    5757 
    5858The connection string specifies that the ``postgres`` driver must be used, the 
    59 database system listens on ``localhost`` and on ``port`` 5433, and the name of 
    60 the database is ``mapfish_workshop``. (if it's not working, test also with port 5432, which is the normal port) 
     59database system listens on ``localhost`` and on ``port`` 5432, and the name of 
     60the database is ``mapfish_workshop``. 
    6161 
    6262Creating web service 
     
    85852. generate the web service code with the ``mf-layer`` command:: 
    8686 
    87     <env> ~mapfish/MapFishApp>paster mf-layer countries 
     87    (env) $ paster mf-layer countries 
    8888 
    89893. configure a route to the ``countries`` controller, this is done by adding 
     
    9898restart ``MapFishApp`` with:: 
    9999 
    100     <env> ~mapfish/MapFishApp>paster serve --reload development.ini 
     100    (env) $ paster serve --reload development.ini 
    101101 
    102102You can now open http://localhost:5000/countries?limit=1 in your browser, you