Changes between Version 2 and Version 3 of ZooDocumentation/ZOOServices


Ignore:
Timestamp:
Sep 9, 2010, 3:59:32 PM (14 years ago)
Author:
lucadelu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooDocumentation/ZOOServices

    v2 v3  
    55= Python =
    66You can use python to develop your service, it's possible to use all python library (for example python GDAL/OGR - Numpy/Scipy ), you must only give space to your imagination.[[BR]]
    7 To take value or data from the request using '''inputs [''yourVariables''] [value]''' and you have the result using '''outputs [''yourVariables''] [value]''' (where '''''yourVariables''''' is the name of variables that you are set in the zcfg file).[[BR]]
     7The ZCFG file should contain the following :[[BR]]
     8{{{
     9serviceType = Python
     10serviceProvider = the name of the Python module to use as a ZOO Service Provider without .py
     11}}}
     12
     13The arguments as passed from the request as dictionary; using '''inputs[''yourVariables''][value]''' it's possible to obtain the value/data and you have the result using '''outputs[''yourVariables''][value]''' (where '''''yourVariables''''' is the name of variables that you are set in the zcfg file); at the end there is '''conf[main][''value'']''' (where '''''value''''' is one of value set in the main.cfg file of ZOO) this parameter is very important to pass tmpPath where you should save the files [[BR]]
    814When you have '''''yourVariables''''' in python variable you can made what do you have in your mind

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