Changes between Version 4 and Version 5 of FDORfc6


Ignore:
Timestamp:
Jul 22, 2007, 7:45:36 PM (17 years ago)
Author:
yangm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc6

    v4 v5  
    3333In 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.
    3434The following shows the new enumeration.
     35{{{
    3536// This number is defined so our custom command would not clash with other
    3637// custom provider commands.
     
    4647    WmsCommandType_GetLayerCRSNames
    4748};
    48 
     49}}}
    4950
    50513 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.
    5152
    5253The 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{{{
    5355FdoPtr<FdoIGetImageFormats > cmd = static_cast<FdoIGetImageFormats *> (conn->CreateCommand (WmsCommandType_GetImageFormats));
    5456FdoPtr<FdoStringCollection> result = cmd->Execute ();
    55 
     57}}}
     58
     59{{{
    5660class FdoIGetImageFormats: public FdoICommand
    5761{
     
    106110
    107111};
    108 
     112}}}
    109113
    110114The 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{{{
    111116FdoPtr< FDOIGetLayerStyles > cmd = static_cast< FDOIGetLayerStyles *> (conn->CreateCommand (WmsCommandType_GetLayerStyles));
    112117cmd->SetLayerName(L”ABC”);
    113118FdoPtr<FdoStringCollection> result = cmd->Execute ();
    114 
     119}}}
     120
     121{{{
    115122class FdoIGetLayerStyles : public FdoICommand
    116123{
     
    199206    FdoStringP mLayerName;
    200207};
    201 
     208}}}
    202209
    203210The 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{{{
    204212FdoPtr<FdoIGetLayerCRSNames> cmd = static_cast<FdoIGetLayerCRSNames*> (conn->CreateCommand (FdoCommandType_GetLayerSupportedCRSNames));
    205213cmd->SetLayerName(L“ABC”);
    206214FdoPtr<FdoStringCollection> result = cmd->Execute ();
    207 
     215}}}
     216
     217{{{
    208218class FdoIGetLayerCRSNames: public FdoICommand
    209219{
     
    292302    FdoStringP mLayerName;
    293303};
     304}}}
    294305
    295306== Implications ==