{{{ #!html
ZOO Services is a growing collection of ready to use Web Processing Services built on top of reliable open source libraries such as GDAL, GRASS GIS, OrfeoToolbox, CGAL and more. It aims at using existing geospatial algorithms through standard WPS, and provides a number of significant examples to build your own.
function hellojs(conf,inputs,outputs){
outputs["result"]["value"]="Hello "+inputs["S"]["value"]+" from the JS World !";
//SERVICE_SUCEEDED
return Array(3,outputs);
}
import zoo
def HelloPy(conf,inputs,outputs):
outputs["Result"]["value"]="Hello "+inputs["a"]["value"]+" from Python World !"
return zoo.SERVICE_SUCCEEDED
function HelloPHP(&$main_conf,&$inputs,&$outputs){
$tmp="Hello ".$inputs["S"]["value"]." from the PHP world !!";
$outputs["Result"]["value"]=zoo_Translate($tmp);
zoo_UpdateStatus($main_conf,"Final step",99);
return zoo_SERVICE_SUCCEEDED();
}
sub HelloPL {
my ($main_conf,$real_inputs,$real_outputs) = @_;
$real_outputs->{"Result"}->{"value"}=$real_inputs->{"a"}->{"value"};
return 3;
}
[def helloRuby(conf,inputs,outputs)
a=Zoo::Translate("Hello")
b=Zoo::Translate("from the ruby world !")
outputs["Result"]["value"]=Zoo::Translate("#{a} #{inputs["s"]["value"]} #{b}")
return Zoo::SERVICE_SUCCEEDED
end
lruby-static
RUBYLDFLAGS=-L/usr/local/ruby-2.1.0/lib -lruby-static