Show
Ignore:
Timestamp:
03/02/10 06:26:55 (2 years ago)
Author:
cmoullet
Message:

Add webservice

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/creating_webservice.txt

    r3378 r3382  
    3131    CREATE DATABASE mapfish_workshop TEMPLATE=template_postgis; 
    3232 
    33 Then, open the explorer, go into the ``C:\MapFish\mapfish_workshop\data`` 
     33Then, open the explorer, go into the ``/home/live/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     C:\MapFish>cd mapfish_workshop\data 
    39     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 
     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 
    4040 
    4141You can start pgAdmin and connect to the ``mapfish_workshop`` database to check 
     
    85852. generate the web service code with the ``mf-layer`` command:: 
    8686 
    87     <env> C:\MapFish\MapFishApp>paster mf-layer countries 
     87    <env> ~mapfish/MapFishApp>paster mf-layer countries 
    8888 
    89893. configure a route to the ``countries`` controller, this is done by adding 
     
    9898restart ``MapFishApp`` with:: 
    9999 
    100     <env> C:\MapFish\MapFishApp>paster serve --reload development.ini 
     100    <env> ~mapfish/MapFishApp>paster serve --reload development.ini 
    101101 
    102102You can now open http://localhost:5000/countries?limit=1 in your browser, you