Changes between Version 4 and Version 5 of FDORfc6
- Timestamp:
- 07/22/07 19:45:36 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc6
v4 v5 33 33 In order not to impact the standard FDO command interface, we plan just adding those commands interface for WMS only. Thus, we also declare a new enum type: WmsCommandType for WMS provider. 34 34 The following shows the new enumeration. 35 {{{ 35 36 // This number is defined so our custom command would not clash with other 36 37 // custom provider commands. … … 46 47 WmsCommandType_GetLayerCRSNames 47 48 }; 48 49 }}} 49 50 50 51 3 new commands will be added to the FDO WMS Providers, individually for getting image formats, style and CS. The usage and the new classes and interfaces are listed as follows. 51 52 52 53 The following is an example of how WMS GetImageFormats command would be used to get the entire supported image formats list form WMS server after connection. 54 {{{ 53 55 FdoPtr<FdoIGetImageFormats > cmd = static_cast<FdoIGetImageFormats *> (conn->CreateCommand (WmsCommandType_GetImageFormats)); 54 56 FdoPtr<FdoStringCollection> result = cmd->Execute (); 55 57 }}} 58 59 {{{ 56 60 class FdoIGetImageFormats: public FdoICommand 57 61 { … … 106 110 107 111 }; 108 112 }}} 109 113 110 114 The following is an example of how WMS GetLayerStyles command would be used to get the entire supported image formats list form WMS server after connection. 115 {{{ 111 116 FdoPtr< FDOIGetLayerStyles > cmd = static_cast< FDOIGetLayerStyles *> (conn->CreateCommand (WmsCommandType_GetLayerStyles)); 112 117 cmd->SetLayerName(L”ABC”); 113 118 FdoPtr<FdoStringCollection> result = cmd->Execute (); 114 119 }}} 120 121 {{{ 115 122 class FdoIGetLayerStyles : public FdoICommand 116 123 { … … 199 206 FdoStringP mLayerName; 200 207 }; 201 208 }}} 202 209 203 210 The following is an example of how WMS GetLayerCRSNames command would be used to get the entire supported image formats list form WMS server after connection. 211 {{{ 204 212 FdoPtr<FdoIGetLayerCRSNames> cmd = static_cast<FdoIGetLayerCRSNames*> (conn->CreateCommand (FdoCommandType_GetLayerSupportedCRSNames)); 205 213 cmd->SetLayerName(L“ABC”); 206 214 FdoPtr<FdoStringCollection> result = cmd->Execute (); 207 215 }}} 216 217 {{{ 208 218 class FdoIGetLayerCRSNames: public FdoICommand 209 219 { … … 292 302 FdoStringP mLayerName; 293 303 }; 304 }}} 294 305 295 306 == Implications ==