Changeset 265 for trunk/docs/workshop/2010
- Timestamp:
- Jul 15, 2011, 8:55:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/workshop/2010/ogr_base_vect_ops.txt
r262 r265 2 2 3 3 Creating OGR based Web Services 4 ############################### 4 =============================== 5 5 6 6 .. contents:: Table of Contents … … 9 9 10 10 Introduction 11 ************ 11 ------------ 12 12 13 13 In this part, we are going to create a ZOO ServicesProvider containing several Services … … 29 29 30 30 Preparing ZOO metadata file 31 *************************** 31 --------------------------- 32 32 33 33 A ZOO Service is a combination of a ZOO metadata file (``.zcfg``) and the runtime module … … 196 196 197 197 Implementing single geometry services 198 ************************************* 198 ------------------------------------- 199 199 200 200 In order to learn the Services Provider creation and deployement step-by-step, … … 213 213 214 214 Boundary 215 ======== 215 ******** 216 216 217 217 C Version 218 --------- 218 ^^^^^^^^^ 219 219 220 220 As explained before, ZOO Kernel will pass the parameters to your Service function … … 436 436 geometry=createGeometryFromWFS(conf,tmp->value); 437 437 438 Basical y, if we get an input with a mimeType set to application/json, then we will438 Basically, if we get an input with a mimeType set to application/json, then we will 439 439 use our ``OGR_G_CreateGeometryFromJson`` in other case, our ``createGeometryFromWFS`` local function. 440 440 … … 577 577 578 578 Python Version 579 -------------- 579 ^^^^^^^^^^^^^^ 580 580 581 581 For those using Python to implement their ZOO Services Provider, the full code to copy in … … 634 634 635 635 Testing the Service using Execute Request 636 ----------------------------------------- 637 638 The simple and unreadable way 639 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 636 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 637 638 **The simple and unreadable way** 640 639 641 640 Everybody should now get his own copy of the OGR Boundary Service stored as a ZOO … … 731 730 :align: center 732 731 733 Simplification and readability of request 734 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 732 **Simplification and readability of request** 735 733 736 734 As you can see in the simple example we used since the begining of this workshop, … … 812 810 ``@mimeType=application/json`` as we discussed before. 813 811 814 storeExecuteResponse parameter and GetStatus Service 815 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 812 **storeExecuteResponse parameter and GetStatus Service** 816 813 817 814 If you go in your local ``/home/user/zoows/sources/zoo-services/utils/status``, you'll … … 880 877 881 878 Creating Services for other functions (ConvexHull and Centroid) 882 =============================================================== 879 *************************************************************** 883 880 884 881 As the Boundary sample service code is available, you can now easily add ConvexHull and … … 888 885 889 886 C Version 890 --------- 887 ^^^^^^^^^ 891 888 892 889 Please add first the following code to the service.c source code : … … 1022 1019 1023 1020 Python Version 1024 -------------- 1021 ^^^^^^^^^^^^^^ 1025 1022 1026 1023 .. code-block:: guess … … 1107 1104 1108 1105 Create the Buffer Service 1109 ========================= 1106 ************************* 1110 1107 1111 1108 We can now work on the Buffer Service, which takes more arguments than the other ones. … … 1118 1115 1119 1116 C Version 1120 --------- 1117 ^^^^^^^^^ 1121 1118 1122 1119 If you go back to the first Boundary Service source code, you should not find the … … 1226 1223 1227 1224 Python Version 1228 -------------- 1225 ^^^^^^^^^^^^^^ 1229 1226 1230 1227 As we already defined the utility functions createGeometryFromWFS and outputResult, … … 1251 1248 1252 1249 The Buffer MetadataFile file 1253 ---------------------------- 1250 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1254 1251 1255 1252 You must add BufferDistance to the Service Metadata File to let clients know that
Note: See TracChangeset
for help on using the changeset viewer.