Changeset 663 for branches/PublicaMundi_David-devel/docs/kernel/sagagis.rst
- Timestamp:
- Jun 16, 2015, 11:59:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PublicaMundi_David-devel/docs/kernel/sagagis.rst
r659 r663 18 18 19 19 20 How does it work ?21 -------------------------22 23 24 25 20 Installation and configuration 26 21 ------------------------------ … … 29 24 30 25 Prerequisites 31 ............. 26 ..................... 32 27 33 28 * latest `ZOO-Kernel <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel>`_ trunk version … … 62 57 63 58 Configuration steps 64 ************************* 59 ............................... 65 60 66 Mainconfiguration file67 ^^^^^^^^^^^^^^^^^^^^^^^ 61 Services configuration file 62 **************************** 68 63 69 Add the following content to your ``/usr/lib/cgi-bin/main.cfg`` file 70 in the ``[env]`` section:64 Building 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: 71 66 72 67 .. code-block:: guess 73 68 74 ITK_AUTOLOAD_PATH=/usr/local/lib/otb/applications 69 cd thirds/saga2zcfg 70 make 75 71 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: 72 The following commands will then generate all the needed zcfg files for the available SAGA-GIS Modules: 80 73 81 74 .. 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 125 81 126 82 83 Test requests 84 ***************** 127 85 128 86 The SAGA-GIS Modules should be listed as available WPS Services when 87 runing a GetCapabilities request, as follow: 88 89 http://localhost/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS 90 91 Each SAGA-GIS Service can then be described individually using the DescribeProcess request, as for example: 92 93 http://localhost/cgi-bin/zoo_loader.cgi?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=SAGA.garden_fractals.1 94 95 And executed according to your needs. The following example executes *SAGA.garden_fractals.1* with no optional parameter: 96 97 http://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. 129 102 130 103 131 104 132 105 133 134
Note: See TracChangeset
for help on using the changeset viewer.