Changes between Version 48 and Version 49 of ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices
- Timestamp:
- Oct 16, 2010, 4:50:35 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices
v48 v49 913 913 We simply added the use of inputs["BufferDistance"]["value"] as arguments of the Geometry instance Buffer method. Once you get this code added to your ogr_ws_service_provider.py file, simply copy it in the ZOO Kernel directory (or type make install from your ZOO Service Provider root directory). Note that you also need the Buffer.zcfg file detailled in the next section. 914 914 915 ==== The Buffer MetadataFile file ====916 917 You must add BufferDistanceto the Service Metadata File to let clients know that this Service supports this parameter. To do this, please copy your orginal Boundary.zcfg file as Buffer.zcfg and add the following lines to the !DataInputs block :915 ==== The Buffer !MetadataFile file ==== 916 917 You must add {{{BufferDistance}}} to the Service Metadata File to let clients know that this Service supports this parameter. To do this, please copy your orginal Boundary.zcfg file as Buffer.zcfg and add the following lines to the !DataInputs block : 918 918 919 919 {{{ … … 935 935 }}} 936 936 937 Note that as minOccursis set to 0 which means that the input parameter is optional and don't have to be passed. You must know that ZOO Kernel will pass the default value to the Service function for an optional parameter with a default value set.938 939 You can get a full copy of the Buffer.zcfgfile here :937 Note that as {{{minOccurs}}} is set to 0 which means that the input parameter is optional and don't have to be passed. You must know that ZOO Kernel will pass the default value to the Service function for an optional parameter with a default value set. 938 939 You can get a full copy of the {{{Buffer.zcfg}}} file here : 940 940 941 941 http://zoo-project.org/trac/browser/trunk/zoo-services/ogr/base-vect-ops/cgi-env/Buffer.zcfg … … 943 943 You can now ask ZOO Kernel for !GetCapabilities, !DescribeProcess and Execute for the Buffer Service. 944 944 945 [ZooWorkshop/FOSS4GJapan/UsingZooFromOSGeoLiveVM Prev.] | [wiki:ZooWorkshop/FOSS4GJapan WorkShop table of content] | [ZooWorkshop/FOSS4GJapan/BuildingWPSClientUsingOL Next]