Changes between Version 27 and Version 28 of ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices

    v27 v28  
    195195 * {{{key}}} : a specific key in the map named name
    196196
    197 For example, the following syntax will be used to access the InputPolygon value map of a {{{maps}}} named {{{inputs}}}, your C code should be :
     197For example, the following syntax will be used to access the {{{InputPolygon}}} value {{{map}}} of a {{{maps}}} named {{{inputs}}}, your C code should be :
    198198
    199199{{{
     
    210210}}}
    211211
    212 As you know how to read and access the map fields from a maps, you can now learn how to write in such a datastructure. This is done by using the simple addToMap function once again defined in {{{zoo- kernel/service.h}}}. The {{{addToMap}}} function also takes three parameters :
    213 
    214  * {{{m}}} : a map pointer you want to update,
    215  * {{{n}}} : the name of the map you want to add or update the value,
     212As you know how to read and access the {{{map}}} fields from a maps, you can now learn how to write in such a datastructure. This is done  by using the simple {{{setMapInMaps}}} function once again defined in {{{zoo- kernel/service.h}}}. The {{{setMapInMaps}}} function takes four parameters :
     213
     214 * {{{m}}} : a {{{maps}}} pointer you want to update,
     215 * {{{ns}}} : the name of the {{{maps}}} you want you want to update,
     216 * {{{n}}} : the name of the {{{map}}} you want to add or update the value,
    216217 * {{{v}}} : the value you want to set for this map.
    217218
    218 Here is an example of how to add or edit the content {{{map}}} of a {{{maps}}} called {{{outputs}}} :
    219 
    220 {{{
    221 #!c
    222 addToMap(outputs->content,"value","Hello from the C World !");
    223 addToMap(outputs->content,"mimeType","text/plain");
    224 addToMap(outputs->content,"encoding","UTF-8");
     219Here is an example of how to add or edit the values of some {{{map}}} in the {{{Result}}} {{{maps}}} from {{{outputs}}} :
     220
     221{{{
     222#!c
     223setMapInMaps(outputs,"Result","value","Hello from the C World !");
     224setMapInMaps(outputs,"Result","mimeType","text/plain");
     225setMapInMaps(outputs,"Result","encoding","UTF-8");
    225226}}}
    226227
     
    417418
    418419{{{
    419 #!c
     420#!sh
    420421LDFLAGS=`gdal-config --libs` `xml2-config --libs` ../../zoo-kernel/service_internal.o
    421422}}}

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