Changes between Initial Version and Version 1 of ZooWorkshop/FOSS4GJapan/Exercice


Ignore:
Timestamp:
Oct 16, 2010, 3:03:17 AM (14 years ago)
Author:
djay
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWorkshop/FOSS4GJapan/Exercice

    v1 v1  
     1= Exercise =
     2
     3You know everything now about writting zcfg matadata files and get short pieces of code in {{{service.c}}} or ogr_service_provider.py depending if you choosen C or Python programming language respectively.
     4
     5The goal of this exercise is to implement the following multiple geometries services :
     6
     7 * Intersection
     8 * Union
     9 * Difference
     10 * SymDifference
     11
     12== C version ==
     13
     14Your are now invited to edit the {{{source.c}}} file you have created during this workshop to add the multiple geometries, using the following OGR C-API functions :
     15
     16 * [http://www.gdal.org/ogr/ogr__api_8h.html#5a271b5c7b72994120e7a6bbc7e7e5cb OGR_G_Intersection](OGRGeometryH, OGRGeometryH)
     17 * [http://www.gdal.org/ogr/ogr__api_8h.html#f58f2cfbdb2497659d2eabea73d3b8a0 OGR_G_Union](OGRGeometryH, OGRGeometryH)
     18 * [http://www.gdal.org/ogr/ogr__api_8h.html#497977bec6ecd9dade7a9694f776be64 OGR_G_Difference](OGRGeometryH, OGRGeometryH)
     19 * [http://www.gdal.org/ogr/ogr__api_8h.html#d6dacf495617a230c6f19950bc415f17 OGR_G_SymmetricDifference](OGRGeometryH, OGRGeometryH)
     20
     21You can use the {{{Boundary.zcfg}}} file as example, rename the {{{InputPolygon}}} input to {{{InputEntity1}}} and add a similar input named {{{IntputEntity2}}}. You are invited to update other values in the ZOO Metadata File to set the proper metadata informations.
     22
     23== Python Version ==
     24
     25Your are invited to edit the ogr_ws_service_provider.py file you created during this workshop to add the multiple geometries using the following osgeo.ogr Geometry methods applied on the first Geometry instance :
     26
     27 * Intersection(Geometry)
     28 * Union(Geometry)
     29 * Difference(Geometry)
     30 * SymmetricDifference(Geometry)
     31
     32You can once again use the Boundary.zcfg file as example, rename the InputPolygon input to InputEntity1 and add a similar input named IntputEntity2. You are invited to update other values in the ZOO metadata file to set the proper metadata informations.
     33
     34== Testing your services ==
     35
     36Once the multiple geometries Services are deployed on your local environment, please reload the zoo-ogr.html created during the previous section from your browser and test your brand new ZOO Services.

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