[659] | 1 | .. _kernel-sagagis: |
---|
| 2 | |
---|
| 3 | Optional SAGA GIS support |
---|
| 4 | ====================== |
---|
| 5 | |
---|
[917] | 6 | `SAGA GIS <http://www.saga-gis.org/>`_ provides a comprehensive set of geoscientific methods and spatial algorithms. The optional SAGA GIS support is available since `ZOO-Project 1.5 <http://zoo-project.org>`__. It allows to execute the `SAGA Modules <http://www.saga-gis.org/saga_module_doc/2.1.4/index.html>`_ directly as ZOO WPS Services thanks to a :ref:`kernel_index` specific internal mechanism which is detailed in this section. |
---|
[659] | 7 | |
---|
| 8 | .. note:: |
---|
| 9 | |
---|
[917] | 10 | |saga| `SAGA GIS <http://www.saga-gis.org/>`__ is the System for Automated Geoscientific Analyses. Learn more on official `website <http://www.saga-gis.org/en/index.html>`__. |
---|
[659] | 11 | |
---|
| 12 | |
---|
| 13 | .. |saga| image:: ../_static/sagagis.png |
---|
| 14 | :height: 100px |
---|
| 15 | :width: 100px |
---|
| 16 | :scale: 45% |
---|
| 17 | :alt: SAGA GIS logo |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | Installation and configuration |
---|
| 21 | ------------------------------ |
---|
| 22 | |
---|
| 23 | Follow the step described bellow in order to activate the ZOO-Project optional SAGA GIS support. |
---|
| 24 | |
---|
| 25 | Prerequisites |
---|
[663] | 26 | ..................... |
---|
[659] | 27 | |
---|
| 28 | * latest `ZOO-Kernel <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel>`_ trunk version |
---|
[917] | 29 | * `SAGA GIS <http://saga-gis.org>`_ (7.2.0) |
---|
[659] | 30 | |
---|
| 31 | Installation steps |
---|
| 32 | ........................... |
---|
| 33 | |
---|
[917] | 34 | Compile ZOO-Kernel using the configuration options as shown bellow: |
---|
[659] | 35 | |
---|
| 36 | .. code-block:: guess |
---|
| 37 | |
---|
| 38 | cd zoo-kernel |
---|
| 39 | autoconf |
---|
[917] | 40 | ./configure --with-saga=/usr/local/ --with-saga-version=7 |
---|
[659] | 41 | make |
---|
| 42 | |
---|
[917] | 43 | And copy the newly created zoo_loader.cgi to ``/usr/lib/cgi-bin``. |
---|
| 44 | |
---|
| 45 | .. note:: |
---|
| 46 | |
---|
| 47 | The ``--with-saga-version`` option let you set the major |
---|
| 48 | version number of SAGA-GIS. |
---|
| 49 | |
---|
[659] | 50 | .. code-block:: guess |
---|
| 51 | |
---|
| 52 | cp zoo_loader.cgi /usr/lib/cgi-bin |
---|
| 53 | |
---|
| 54 | Configuration steps |
---|
[663] | 55 | ............................... |
---|
[659] | 56 | |
---|
| 57 | Services configuration file |
---|
[663] | 58 | **************************** |
---|
[659] | 59 | |
---|
[917] | 60 | Building the |
---|
| 61 | `saga2zcfg <http://zoo-project.org/trac/browser/trunk/thirds/saga2zcfg>`_ |
---|
| 62 | utility is required to activate the available SAGA-GIS Modules as WPS |
---|
| 63 | Services. This can be done using the following command: |
---|
[659] | 64 | |
---|
| 65 | .. code-block:: guess |
---|
| 66 | |
---|
[663] | 67 | cd thirds/saga2zcfg |
---|
| 68 | make |
---|
[659] | 69 | |
---|
[663] | 70 | The following commands will then generate all the needed zcfg files for the available SAGA-GIS Modules: |
---|
[659] | 71 | |
---|
| 72 | .. code-block:: guess |
---|
[663] | 73 | |
---|
| 74 | mkdir zcfgs |
---|
| 75 | cd zcfgs |
---|
| 76 | ../saga2zcfg |
---|
| 77 | mkdir /location/to/your/cgi-bin/SAGA |
---|
| 78 | cp *zcfg /location/to/your/cgi-bin/SAGA |
---|
[659] | 79 | |
---|
| 80 | |
---|
[663] | 81 | Test requests |
---|
| 82 | ***************** |
---|
[659] | 83 | |
---|
[663] | 84 | The SAGA-GIS Modules should be listed as available WPS Services when |
---|
| 85 | runing a GetCapabilities request, as follow: |
---|
[659] | 86 | |
---|
[663] | 87 | http://localhost/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS |
---|
[659] | 88 | |
---|
[663] | 89 | Each SAGA-GIS Service can then be described individually using the DescribeProcess request, as for example: |
---|
[659] | 90 | |
---|
[663] | 91 | http://localhost/cgi-bin/zoo_loader.cgi?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=SAGA.garden_fractals.1 |
---|
[659] | 92 | |
---|
[663] | 93 | And executed according to your needs. The following example executes *SAGA.garden_fractals.1* with no optional parameter: |
---|
[659] | 94 | |
---|
[663] | 95 | 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 |
---|
[659] | 96 | |
---|
[663] | 97 | .. note:: |
---|
| 98 | |
---|
| 99 | The common ZOO GetStatus requests also work when using the SAGA-GIS Modules as WPS Services. |
---|
[659] | 100 | |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | |
---|