1 | |
---|
2 | |
---|
3 | <!DOCTYPE html> |
---|
4 | <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
---|
5 | <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
---|
6 | <head> |
---|
7 | <meta charset="utf-8"> |
---|
8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
---|
9 | |
---|
10 | <title>Optional SAGA GIS support — ZOO-Project 1.4a0 documentation</title> |
---|
11 | |
---|
12 | <link href="http://fonts.googleapis.com/css?family=Days+One" rel="stylesheet" type="text/css"> |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | <link rel="search" type="application/opensearchdescription+xml" title="Search within ZOO-Project 1.4a0 documentation" href="../_static/opensearch.xml"/> |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | <link rel="top" title="ZOO-Project 1.4a0 documentation" href="../index.html"/> |
---|
35 | <link rel="up" title="ZOO-Kernel" href="index.html"/> |
---|
36 | <link rel="next" title="ZOO-Services" href="../services/index.html"/> |
---|
37 | <link rel="prev" title="Optional Orfeo Toolbox support" href="orfeotoolbox.html"/> |
---|
38 | |
---|
39 | |
---|
40 | <script src="_static/js/modernizr.min.js"></script> |
---|
41 | |
---|
42 | </head> |
---|
43 | |
---|
44 | <body class="wy-body-for-nav" role="document"> |
---|
45 | |
---|
46 | <div class="wy-grid-for-nav"> |
---|
47 | |
---|
48 | |
---|
49 | <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
---|
50 | <div class="wy-side-nav-search"> |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | <a class="shrink" href="http://zoo-project.org"><img src="http://zoo-project.org/img/zoo-sun-logo.png" class="img-responsive sun" style="display: inline;"> ZOO</a> |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | </a> |
---|
59 | |
---|
60 | |
---|
61 | <div role="search"> |
---|
62 | <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> |
---|
63 | <input type="text" name="q" placeholder="Search docs" /> |
---|
64 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
65 | <input type="hidden" name="area" value="default" /> |
---|
66 | </form> |
---|
67 | </div> |
---|
68 | |
---|
69 | |
---|
70 | </div> |
---|
71 | |
---|
72 | <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
---|
73 | |
---|
74 | |
---|
75 | |
---|
76 | <ul class="current"> |
---|
77 | <li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a><ul> |
---|
78 | <li class="toctree-l2"><a class="reference internal" href="../intro.html#what-is-zoo-project">What is ZOO-Project ?</a></li> |
---|
79 | <li class="toctree-l2"><a class="reference internal" href="../intro.html#zoo-project-components">ZOO-Project components</a></li> |
---|
80 | <li class="toctree-l2"><a class="reference internal" href="../intro.html#open-source">Open Source</a></li> |
---|
81 | </ul> |
---|
82 | </li> |
---|
83 | <li class="toctree-l1"><a class="reference internal" href="../install/index.html">ZOO-Project installation</a><ul> |
---|
84 | <li class="toctree-l2"><a class="reference internal" href="../install/install-prerequisites.html">Prerequisites</a></li> |
---|
85 | <li class="toctree-l2"><a class="reference internal" href="../install/install-download.html">Download</a></li> |
---|
86 | <li class="toctree-l2"><a class="reference internal" href="../install/install-confoptions.html">Configure options</a></li> |
---|
87 | <li class="toctree-l2"><a class="reference internal" href="../install/install-installation.html">Installation on Unix/Linux</a></li> |
---|
88 | <li class="toctree-l2"><a class="reference internal" href="../install/install-onwindows.html">Installation on Windows ™</a></li> |
---|
89 | <li class="toctree-l2"><a class="reference internal" href="../install/install-onmacos.html">Installation on MacOSX ™</a></li> |
---|
90 | </ul> |
---|
91 | </li> |
---|
92 | <li class="toctree-l1 current"><a class="reference internal" href="index.html">ZOO-Kernel</a><ul class="current"> |
---|
93 | <li class="toctree-l2"><a class="reference internal" href="what.html">What is ZOO-Kernel ?</a></li> |
---|
94 | <li class="toctree-l2"><a class="reference internal" href="configuration.html">ZOO-Kernel configuration</a></li> |
---|
95 | <li class="toctree-l2"><a class="reference internal" href="mapserver.html">Optional MapServer support</a></li> |
---|
96 | <li class="toctree-l2"><a class="reference internal" href="orfeotoolbox.html">Optional Orfeo Toolbox support</a></li> |
---|
97 | <li class="toctree-l2 current"><a class="current reference internal" href="">Optional SAGA GIS support</a></li> |
---|
98 | </ul> |
---|
99 | </li> |
---|
100 | <li class="toctree-l1"><a class="reference internal" href="../services/index.html">ZOO-Services</a><ul> |
---|
101 | <li class="toctree-l2"><a class="reference internal" href="../services/what.html">What are ZOO-Services ?</a></li> |
---|
102 | <li class="toctree-l2"><a class="reference internal" href="../services/zcfg-reference.html">ZOO-Service configuration file</a></li> |
---|
103 | <li class="toctree-l2"><a class="reference internal" href="../services/process-profiles.html">Process profiles registry</a></li> |
---|
104 | <li class="toctree-l2"><a class="reference internal" href="../services/howtos.html">Create your own ZOO-Services</a></li> |
---|
105 | <li class="toctree-l2"><a class="reference internal" href="../services/status.html">ZOO Status Service</a></li> |
---|
106 | <li class="toctree-l2"><a class="reference internal" href="../services/debug.html">Debugging ZOO Services</a></li> |
---|
107 | <li class="toctree-l2"><a class="reference internal" href="../services/zoo-services.html">Available ZOO-Services</a></li> |
---|
108 | </ul> |
---|
109 | </li> |
---|
110 | <li class="toctree-l1"><a class="reference internal" href="../api/index.html">ZOO-API</a><ul> |
---|
111 | <li class="toctree-l2"><a class="reference internal" href="../api/what.html">What is ZOO-API ?</a></li> |
---|
112 | <li class="toctree-l2"><a class="reference internal" href="../api/howto.html">Using ZOO-API</a></li> |
---|
113 | <li class="toctree-l2"><a class="reference internal" href="../api/classes.html">ZOO-API Classes</a></li> |
---|
114 | <li class="toctree-l2"><a class="reference internal" href="../api/examples.html">Examples</a></li> |
---|
115 | </ul> |
---|
116 | </li> |
---|
117 | <li class="toctree-l1"><a class="reference internal" href="../client/index.html">ZOO-Client</a><ul> |
---|
118 | <li class="toctree-l2"><a class="reference internal" href="../client/what.html">What is ZOO-Client ?</a></li> |
---|
119 | <li class="toctree-l2"><a class="reference internal" href="../client/howto.html">Using ZOO-Client</a></li> |
---|
120 | <li class="toctree-l2"><a class="reference internal" href="../client/example.html">Example application</a></li> |
---|
121 | </ul> |
---|
122 | </li> |
---|
123 | <li class="toctree-l1"><a class="reference internal" href="../contribute/index.html">Contributor Guide</a><ul> |
---|
124 | <li class="toctree-l2"><a class="reference internal" href="../contribute/howto.html">How to contribute ?</a></li> |
---|
125 | <li class="toctree-l2"><a class="reference internal" href="../contribute/code.html">Contribute code</a></li> |
---|
126 | </ul> |
---|
127 | </li> |
---|
128 | </ul> |
---|
129 | |
---|
130 | |
---|
131 | |
---|
132 | </div> |
---|
133 | |
---|
134 | </nav> |
---|
135 | |
---|
136 | <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
---|
137 | |
---|
138 | |
---|
139 | <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> |
---|
140 | <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
---|
141 | <a href="../contents.html">ZOO-Project</a> |
---|
142 | </nav> |
---|
143 | |
---|
144 | |
---|
145 | |
---|
146 | <div class="wy-nav-content"> |
---|
147 | <div class="rst-content"> |
---|
148 | <div role="navigation" aria-label="breadcrumbs navigation"> |
---|
149 | <ul class="wy-breadcrumbs"> |
---|
150 | |
---|
151 | <li><a href="../contents.html"> Docs</a> ∕  </li> |
---|
152 | |
---|
153 | <li><a href="index.html">ZOO-Kernel</a> ∕  </li> |
---|
154 | |
---|
155 | <li>Optional SAGA GIS support</li> |
---|
156 | <li class="wy-breadcrumbs-aside"> |
---|
157 | |
---|
158 | <a href="../_sources/kernel/sagagis.txt" rel="nofollow"> View page source</a> |
---|
159 | |
---|
160 | </li> |
---|
161 | </ul> |
---|
162 | <hr/> |
---|
163 | </div> |
---|
164 | <div role="main" class="document"> |
---|
165 | |
---|
166 | <div class="section" id="optional-saga-gis-support"> |
---|
167 | <span id="kernel-sagagis"></span><h1>Optional SAGA GIS support<a class="headerlink" href="#optional-saga-gis-support" title="Permalink to this headline">¶</a></h1> |
---|
168 | <p><a class="reference external" href="http://orfeo-toolbox.org/otb/">SAGA GIS</a> provides a comprehensive set of geoscientific methods and spatial algorithms. The optional SAGA GIS support is available since <a class="reference external" href="http://zoo-project.org">ZOO-Project 1.5</a>. It allows to execute the <a class="reference external" href="http://www.saga-gis.org/saga_module_doc/2.1.4/index.html">SAGA Modules</a> directly as ZOO WPS Services thanks to a <a class="reference internal" href="index.html#kernel-index"><span>ZOO-Kernel</span></a> specific internal mechanism which is detailed in this section.</p> |
---|
169 | <div class="admonition note"> |
---|
170 | <p class="first admonition-title">Note</p> |
---|
171 | <p class="last"><a class="reference internal" href="../_images/sagagis.png"><img alt="SAGA GIS logo" src="../_images/sagagis.png" style="width: 45.0px; height: 45.0px;" /></a> <a class="reference external" href="https://www.orfeo-toolbox.org">SAGA GIS</a> is the System for Automated Geoscientific Analyses. Learn more on official <a class="reference external" href="http://www.saga-gis.org/en/index.html">website</a>.</p> |
---|
172 | </div> |
---|
173 | <div class="section" id="how-does-it-work"> |
---|
174 | <h2>How does it work ?<a class="headerlink" href="#how-does-it-work" title="Permalink to this headline">¶</a></h2> |
---|
175 | </div> |
---|
176 | <div class="section" id="installation-and-configuration"> |
---|
177 | <h2>Installation and configuration<a class="headerlink" href="#installation-and-configuration" title="Permalink to this headline">¶</a></h2> |
---|
178 | <p>Follow the step described bellow in order to activate the ZOO-Project optional SAGA GIS support.</p> |
---|
179 | <div class="section" id="prerequisites"> |
---|
180 | <h3>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this headline">¶</a></h3> |
---|
181 | <blockquote> |
---|
182 | <div><ul class="simple"> |
---|
183 | <li>latest <a class="reference external" href="http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel">ZOO-Kernel</a> trunk version</li> |
---|
184 | <li>SAGA GIS (<a class="reference external" href="http://saga-gis.org">SAGA-GIS 2.1.4</a> )</li> |
---|
185 | <li>libLAS-1.2 (<a class="reference external" href="https://github.com/libLAS/libLAS-1.2">LibLAS-1.2</a> )</li> |
---|
186 | </ul> |
---|
187 | </div></blockquote> |
---|
188 | </div> |
---|
189 | <div class="section" id="installation-steps"> |
---|
190 | <h3>Installation steps<a class="headerlink" href="#installation-steps" title="Permalink to this headline">¶</a></h3> |
---|
191 | <div class="admonition note"> |
---|
192 | <p class="first admonition-title">Note</p> |
---|
193 | <p class="last">These installation steps were successfully tested on Ubuntu 14.4 LTS</p> |
---|
194 | </div> |
---|
195 | <p>Download lastest ZOO-Kernel code from SVN.</p> |
---|
196 | <div class="highlight-guess"><div class="highlight"><pre>svn checkout http://svn.zoo-project.org/svn/trunk/zoo-kernel zoo-kernel |
---|
197 | </pre></div> |
---|
198 | </div> |
---|
199 | <p>Then compile ZOO-Kernel using the needed configuration options as shown bellow:</p> |
---|
200 | <div class="highlight-guess"><div class="highlight"><pre>cd zoo-kernel |
---|
201 | autoconf |
---|
202 | ./configure --with-saga=/usr/local/ |
---|
203 | make |
---|
204 | </pre></div> |
---|
205 | </div> |
---|
206 | <p>And copy the newly created zoo_loader.cgi to <code class="docutils literal"><span class="pre">/usr/lib/cgi-bin</span></code> :</p> |
---|
207 | <div class="highlight-guess"><div class="highlight"><pre>cp zoo_loader.cgi /usr/lib/cgi-bin |
---|
208 | </pre></div> |
---|
209 | </div> |
---|
210 | <div class="section" id="configuration-steps"> |
---|
211 | <h4>Configuration steps<a class="headerlink" href="#configuration-steps" title="Permalink to this headline">¶</a></h4> |
---|
212 | <div class="section" id="main-configuration-file"> |
---|
213 | <h5>Main configuration file<a class="headerlink" href="#main-configuration-file" title="Permalink to this headline">¶</a></h5> |
---|
214 | <p>Add the following content to your <code class="docutils literal"><span class="pre">/usr/lib/cgi-bin/main.cfg</span></code> file |
---|
215 | in the <code class="docutils literal"><span class="pre">[env]</span></code> section:</p> |
---|
216 | <div class="highlight-guess"><div class="highlight"><pre>ITK_AUTOLOAD_PATH=/usr/local/lib/otb/applications |
---|
217 | </pre></div> |
---|
218 | </div> |
---|
219 | </div> |
---|
220 | <div class="section" id="services-configuration-file"> |
---|
221 | <h5>Services configuration file<a class="headerlink" href="#services-configuration-file" title="Permalink to this headline">¶</a></h5> |
---|
222 | <p>The build of the <a class="reference external" href="http://zoo-project.org/trac/browser/trunk/thirds/otb2zcfg">otb2zcfg</a> utility is required to activate the available OTB Applications as WPS services. This can be done using the following command:</p> |
---|
223 | <div class="highlight-guess"><div class="highlight"><pre>mkdir build |
---|
224 | cd build |
---|
225 | ccmake .. |
---|
226 | make |
---|
227 | </pre></div> |
---|
228 | </div> |
---|
229 | <p>Run the following command to generate all the needed zcfg files for the available OTB Application:</p> |
---|
230 | <div class="highlight-guess"><div class="highlight"><pre>mkdir zcfgs |
---|
231 | cd zcfgs |
---|
232 | export ITK_AUTOLOAD_PATH=/your/path/to/otb/applications |
---|
233 | ../build/otb2zcfg |
---|
234 | mkdir /location/to/your/cgi-bin/OTB |
---|
235 | cp *zcfg /location/to/your/cgi-bin/OTB |
---|
236 | </pre></div> |
---|
237 | </div> |
---|
238 | </div> |
---|
239 | <div class="section" id="test-the-zoo-saga-support"> |
---|
240 | <h5>Test the ZOO SAGA support<a class="headerlink" href="#test-the-zoo-saga-support" title="Permalink to this headline">¶</a></h5> |
---|
241 | <p>Once done, OTB Applications should be listed as available WPS Services when runing a GetCapabilities request</p> |
---|
242 | <div class="highlight-guess"><div class="highlight"><pre>http://localhost/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS |
---|
243 | </pre></div> |
---|
244 | </div> |
---|
245 | <p>Each OTB Service can then be described individually using the DescribeProcess request, as for example:</p> |
---|
246 | <div class="highlight-guess"><div class="highlight"><pre>http://localhost/cgi-bin/zoo_loader.cgi?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=OTB.BandMath |
---|
247 | </pre></div> |
---|
248 | </div> |
---|
249 | <p>And executed according to your needs, as for the following example executing OTB.BandMath with the OTB sample data as input</p> |
---|
250 | <div class="highlight-guess"><div class="highlight"><pre><span class="nt">http</span><span class="o">://</span><span class="nt">localhost</span><span class="o">/</span><span class="nt">cgi-bin</span><span class="o">/</span><span class="nt">zoo_loader</span><span class="nc">.cgi</span><span class="o">?</span><span class="nt">request</span><span class="o">=</span><span class="nt">Execute</span><span class="o">&</span><span class="nt">service</span><span class="o">=</span><span class="nt">WPS</span><span class="o">&</span><span class="nt">version</span><span class="o">=</span><span class="nt">1</span><span class="nc">.0.0</span><span class="o">&</span><span class="nt">Identifier</span><span class="o">=</span><span class="nt">OTB</span><span class="nc">.BandMath</span><span class="o">&</span><span class="nt">DataInputs</span><span class="o">=</span><span class="nt">il</span><span class="o">=</span><span class="nt">Reference</span><span class="k">@xlink</span><span class="nd">:href</span><span class="o">=</span><span class="nt">http</span><span class="o">://</span><span class="nt">hg</span><span class="nc">.orfeo-toolbox.org</span><span class="o">/</span><span class="nt">OTB-Data</span><span class="o">/</span><span class="nt">raw-file</span><span class="o">/</span><span class="nt">ca154074b282</span><span class="o">/</span><span class="nt">Examples</span><span class="o">/</span><span class="nt">verySmallFSATSW</span><span class="nc">.tif</span><span class="p">;</span><span class="nt">il</span><span class="o">=</span><span class="nt">Reference</span><span class="k">@xlink</span><span class="nd">:href</span><span class="o">=</span><span class="nt">http</span><span class="o">://</span><span class="nt">hg</span><span class="nc">.orfeo-toolbox.org</span><span class="o">/</span><span class="nt">OTB-Data</span><span class="o">/</span><span class="nt">raw-file</span><span class="o">/</span><span class="nt">ca154074b282</span><span class="o">/</span><span class="nt">Examples</span><span class="o">/</span><span class="nt">verySmallFSATSW_nir</span><span class="nc">.tif</span><span class="p">;</span><span class="nt">out</span><span class="o">=</span><span class="nt">float</span><span class="o">;</span><span class="nt">exp</span><span class="o">=</span><span class="nt">im1b3</span><span class="o">*</span><span class="nt">cos</span><span class="o">%</span><span class="nt">28im1b1</span><span class="o">%</span><span class="nt">29</span><span class="o">,</span><span class="nt">im1b2</span><span class="o">*</span><span class="nt">cos</span><span class="o">%</span><span class="nt">28im1b1</span><span class="o">%</span><span class="nt">29</span><span class="o">,</span><span class="nt">im1b1</span><span class="o">*</span><span class="nt">cos</span><span class="o">%</span><span class="nt">28im1b1</span><span class="o">%</span><span class="nt">29</span><span class="o">&</span><span class="nt">RawDataOutput</span><span class="o">=</span><span class="nt">out</span><span class="k">@mimeType</span><span class="o">=</span><span class="nt">image</span><span class="o">/</span><span class="nt">png</span> |
---|
251 | </pre></div> |
---|
252 | </div> |
---|
253 | <p>When executing OTB applications as WPS Services, it is also possible to check the OTB process status, using the usual ZOO GetStatus request.</p> |
---|
254 | </div> |
---|
255 | </div> |
---|
256 | </div> |
---|
257 | </div> |
---|
258 | </div> |
---|
259 | |
---|
260 | |
---|
261 | </div> |
---|
262 | <footer> |
---|
263 | |
---|
264 | <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
---|
265 | |
---|
266 | <a href="../services/index.html" class="btn btn-neutral float-right" title="ZOO-Services">Next <span class="fa fa-arrow-circle-right"></span></a> |
---|
267 | |
---|
268 | |
---|
269 | <a href="orfeotoolbox.html" class="btn btn-neutral" title="Optional Orfeo Toolbox support"><span class="fa fa-arrow-circle-left"></span> Previous</a> |
---|
270 | |
---|
271 | </div> |
---|
272 | |
---|
273 | |
---|
274 | <hr/> |
---|
275 | <div class="pfoot"> |
---|
276 | <div role="contentinfo"> |
---|
277 | <p> |
---|
278 | © Copyright 2009-2015, ZOO-Project team. |
---|
279 | </p> |
---|
280 | </div> |
---|
281 | Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> inspired by <a href="https://readthedocs.org">Read the Docs</a>. |
---|
282 | </div> |
---|
283 | </footer> |
---|
284 | |
---|
285 | </div> |
---|
286 | </div> |
---|
287 | |
---|
288 | </section> |
---|
289 | |
---|
290 | </div> |
---|
291 | |
---|
292 | |
---|
293 | |
---|
294 | |
---|
295 | |
---|
296 | <script type="text/javascript"> |
---|
297 | var DOCUMENTATION_OPTIONS = { |
---|
298 | URL_ROOT:'../', |
---|
299 | VERSION:'1.4a0', |
---|
300 | COLLAPSE_INDEX:false, |
---|
301 | FILE_SUFFIX:'.html', |
---|
302 | HAS_SOURCE: true |
---|
303 | }; |
---|
304 | </script> |
---|
305 | <script type="text/javascript" src="../_static/jquery.js"></script> |
---|
306 | <script type="text/javascript" src="../_static/underscore.js"></script> |
---|
307 | <script type="text/javascript" src="../_static/doctools.js"></script> |
---|
308 | |
---|
309 | |
---|
310 | |
---|
311 | |
---|
312 | |
---|
313 | <script type="text/javascript" src="../_static/js/theme.js"></script> |
---|
314 | |
---|
315 | |
---|
316 | |
---|
317 | |
---|
318 | <script type="text/javascript"> |
---|
319 | jQuery(function () { |
---|
320 | SphinxRtdTheme.StickyNav.enable(); |
---|
321 | }); |
---|
322 | </script> |
---|
323 | |
---|
324 | |
---|
325 | </body> |
---|
326 | </html> |
---|