Ignore:
Timestamp:
Jun 16, 2015, 11:59:50 AM (9 years ago)
Author:
nbozon
Message:

various enhancements and missing doc files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PublicaMundi_David-devel/docs/kernel/sagagis.rst

    r659 r663  
    1818
    1919
    20 How does it work ?
    21 -------------------------
    22 
    23 
    24 
    2520Installation and configuration
    2621------------------------------
     
    2924
    3025Prerequisites
    31 .............
     26.....................
    3227
    3328   * latest `ZOO-Kernel <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel>`_ trunk version
     
    6257
    6358Configuration steps
    64 *************************
     59...............................
    6560
    66 Main configuration file
    67 ^^^^^^^^^^^^^^^^^^^^^^^
     61Services configuration file
     62****************************
    6863
    69 Add the following content to your ``/usr/lib/cgi-bin/main.cfg`` file
    70 in the ``[env]`` section:
     64Building the `saga2zcfg
     65<http://zoo-project.org/trac/browser/trunk/thirds/otb2zcfg >`_ utility is required to activate the available SAGA-GIS Modules as WPS Services. This can be done using the following command:
    7166
    7267.. code-block:: guess
    7368
    74        ITK_AUTOLOAD_PATH=/usr/local/lib/otb/applications
     69    cd thirds/saga2zcfg
     70    make
    7571
    76 Services configuration file
    77 ^^^^^^^^^^^^^^^^^^^^^^^^^^
    78 
    79 The build of the `otb2zcfg  <http://zoo-project.org/trac/browser/trunk/thirds/otb2zcfg>`_ utility is required to activate the available OTB Applications as WPS services. This can be done using the following command:
     72The following commands will then generate all the needed zcfg files for the available SAGA-GIS Modules:
    8073
    8174.. code-block:: guess
    82        
    83          mkdir build
    84          cd build
    85          ccmake ..
    86          make
    87        
    88 Run the following command to generate all the needed zcfg files for the available OTB Application:
    89 
    90 .. code-block:: guess
    91        
    92          mkdir zcfgs
    93          cd zcfgs
    94          export ITK_AUTOLOAD_PATH=/your/path/to/otb/applications
    95          ../build/otb2zcfg
    96          mkdir /location/to/your/cgi-bin/OTB
    97          cp *zcfg /location/to/your/cgi-bin/OTB
    98        
    99 .. warning
    100 
    101      The ITK_AUTOLOAD_PATH environment variable is required in the [env] section of your main.cfg.
    102 
    103 Test the ZOO SAGA support
    104 ^^^^^^^^^^^^^^^^^^^^^^^
    105 
    106 Once done, OTB Applications should be listed as available WPS Services when runing a GetCapabilities request
    107 
    108 .. code-block:: guess
    109 
    110         http://localhost/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS
    111 
    112 Each OTB Service can then be described individually using the DescribeProcess request, as for example:
    113 
    114 .. code-block:: guess
    115 
    116    http://localhost/cgi-bin/zoo_loader.cgi?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=OTB.BandMath
    117 
    118 And executed according to your needs, as for the following example executing OTB.BandMath with the OTB sample data as input
    119 
    120 .. code-block:: guess
    121 
    122    http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=OTB.BandMath&DataInputs=il=Reference@xlink:href=http://hg.orfeo-toolbox.org/OTB-Data/raw-file/ca154074b282/Examples/verySmallFSATSW.tif;il=Reference@xlink:href=http://hg.orfeo-toolbox.org/OTB-Data/raw-file/ca154074b282/Examples/verySmallFSATSW_nir.tif;out=float;exp=im1b3*cos%28im1b1%29,im1b2*cos%28im1b1%29,im1b1*cos%28im1b1%29&RawDataOutput=out@mimeType=image/png
    123 
    124 When executing OTB applications as WPS Services, it is also possible to check the OTB process status, using the usual ZOO GetStatus request.
     75               
     76    mkdir zcfgs
     77    cd zcfgs
     78    ../saga2zcfg
     79    mkdir /location/to/your/cgi-bin/SAGA
     80    cp *zcfg /location/to/your/cgi-bin/SAGA
    12581
    12682
     83Test requests
     84*****************
    12785
    128    
     86The SAGA-GIS Modules should be listed as available WPS Services when
     87runing a GetCapabilities request, as follow:
     88
     89http://localhost/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS
     90
     91Each SAGA-GIS Service can then be described individually using the DescribeProcess request, as for example:
     92
     93http://localhost/cgi-bin/zoo_loader.cgi?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=SAGA.garden_fractals.1
     94
     95And executed according to your needs. The following example executes *SAGA.garden_fractals.1* with no optional parameter:
     96
     97http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=SAGA.garden_fractals.1&DataInputs=&ResponseDocument=RESULT@mimeType=application/json@asReference=true
     98
     99.. note::
     100   
     101  The common ZOO GetStatus requests also work when using the SAGA-GIS Modules as WPS Services.
    129102
    130103
    131104
    132105
    133 
    134 
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png