source: branches/ms-style/workshop/2012/building_blocks_presentation.rst @ 863

Last change on this file since 863 was 725, checked in by djay, 9 years ago

Fix issue with rst files displayed from Trac. Fix strings to be translated. Always use the same string in all messages.

  • Property svn:keywords set to Date Author
  • Property svn:mime-type set to text/plain
File size: 3.2 KB
Line 
1.. _ogr_base_vect_ops:
2
3*********************************************************
4Presenting building blocks - Using OGR based Web Services
5*********************************************************
6
7.. contents:: Table of Contents
8    :depth: 5
9    :backlinks: top
10
11Introduction
12============
13
14In this section, you will use basic ZOO-Services : ``BufferPy``,
15``IntersectionPy`` and ``DifferencePy`` which use OGR Python module.
16The intended goal of this section is to present and interact with your new building blocks before chaining them in the next section.
17
18First of all, you should use the following link to access a user interface to interact with your service :
19`http://localhost/zoows-demo/spatialtools-py.html <http://localhost/zoows-demo/spatialtools-py.html>`__
20
21Services Provider and configuration files
22=========================================
23
24First you may verify if the ZOO-Services are available from your current setup.
25You can take a look at the ``Buffer.zcfg``, ``Intersection.zcfg`` and
26``DifferencePy.zcfg`` to get details about parameters.
27As you can see from the ZCFG files, you will use ZOO-Services provided by the
28``foss4g_ws`` Python service provider. So if you want to modify the Python code
29you will have to edit this file.
30You are invited to use similar requests as you seen in previous sections to learn about each service.
31
32The Buffer Service
33=========================
34
35First click on a street then once the street is displayed in blue, click the
36'Buffer' button on top, you should get similar result as displayed in the following.
37
38.. image:: ./images/Buffer_Level_15.png
39   :width: 650px
40   :align: center
41
42Since version ZOO-Project 1.2.0, you can run automatically some basic tests to
43make sure that you wrote a correct ZCFG file and your service is validating.
44
45.. note:: the current testing is really simple and should be adapted to each Services
46    Provider, mainly to define input names.
47
48You can use the following command:
49
50.. code-block:: bash
51   
52    cd /home/user/zoo/testing
53    ./run.sh http://localhost/cgi-bin/zoo_loader.cgi Buffer
54
55
56.. note:: During or after the test run, you can take a look inside the ``tmp`` directory
57    which contains both the XML requests send to the ZOO Kernel (``*1.xml``) and the
58    responses it gave (``output*.xml``).
59
60The Intersection Service
61=========================
62
63Using the same client interface as before, once you get a Buffer, you can then
64select a street intersecting the Buffer geometry to compute intersection by clicking on the Intersection button.
65
66   
67.. image:: ./images/Intersection_Level_15.png
68   :width: 650px
69   :align: center
70
71
72The Difference Service
73=========================
74
75Using the same instructions as for Intersetion, you can get the following result.
76
77.. image:: ./images/Difference_Level_15.png
78   :width: 650px
79   :align: center
80
81
82Conclusion
83========
84
85Now you know this three services, and you get a simple interface to interact
86with your MapServer WFS and your ZOO-Project WPS Servers, you are ready to use
87the Services in a different way by chaining them using the ZOO-API to build
88more complexe and powerfull services.
Note: See TracBrowser for help on using the repository browser.

Search

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