Changes between Version 9 and Version 10 of FDORfc6
- Timestamp:
- 07/22/07 20:59:37 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc6
v9 v10 22 22 == Overview == 23 23 24 In the current design of the OSGeo OGC FDO WMS Provider(s), no mechanism exists to allow a client to retrieve all supported CS’s for a specific WMS layer, neither for image format and style information.24 In the current design of the OSGeo OGC FDO WMS Provider(s), no mechanism exists to allow a client to retrieve all supported CS’s for a specific WMS feature class, neither for image format and style information. 25 25 In order to resolve this issue, the WMS providers should be enhanced to add 3 new commands for retrieving all supported image format, style and CS information from WMS server. 26 26 … … 40 40 /// Represents the GetImageFormats command. 41 41 WmsCommandType_GetImageFormats = FdoCommandType_FirstProviderCommand + WMS_FIRST_PROVIDER_COMMAND, 42 WmsCommandType_Get LayerStyles,43 WmsCommandType_Get LayerCRSNames42 WmsCommandType_GetFeatureClassStyles, 43 WmsCommandType_GetFeatureClassCRSNames 44 44 }; 45 45 }}} … … 108 108 }}} 109 109 110 The following is an example of how WMS Get LayerStyles command would be used to get the entire supported image formats list from WMS server after connection.111 {{{ 112 FdoPtr< FDOIGet LayerStyles > cmd = static_cast< FDOIGetLayerStyles *> (conn->CreateCommand (WmsCommandType_GetLayerStyles));113 cmd->Set LayerName(L”ABC”);110 The following is an example of how WMS GetFeatureClassStyles command would be used to get the entire supported image formats list from WMS server after connection. 111 {{{ 112 FdoPtr< FDOIGetFeatureStyles > cmd = static_cast< FDOIGetFeatureClassStyles *> (conn->CreateCommand (WmsCommandType_GetFeatureClassStyles)); 113 cmd->SetFeatureClassName(L”ABC”); 114 114 FdoPtr<FdoStringCollection> result = cmd->Execute (); 115 115 }}} 116 116 117 117 {{{ 118 class FdoIGet LayerStyles : public FdoICommand118 class FdoIGetFeatureClassStyles : public FdoICommand 119 119 { 120 120 friend class FdoIConnection; … … 122 122 public: 123 123 /// \brief 124 /// Gets the name of the layerto get all supported styles.125 /// 126 /// \return 127 /// Returns the layername128 /// 129 FDO_API virtual FdoString* Get LayerName() = 0;130 131 /// \brief 132 /// Sets the name of the layerto get all supported styles.124 /// Gets the name of the feature class to get all supported styles. 125 /// 126 /// \return 127 /// Returns the featuer class name 128 /// 129 FDO_API virtual FdoString* GetFeatureClassName() = 0; 130 131 /// \brief 132 /// Sets the name of the feature class to get all supported styles. 133 133 /// This function is mandatory; if not specified, 134 134 /// execution of the command will throw exception. 135 135 /// 136 136 /// \param value 137 /// Input the layername137 /// Input the feature class name 138 138 /// 139 139 /// \return 140 140 /// Returns nothing 141 141 /// 142 FDO_API virtual void Set LayerName(FdoString* value) = 0;143 144 /// \brief 145 /// Executes the Get LayerStyles command and returns a146 /// FdoStringCollection, which contains all styles supported by specific layer.142 FDO_API virtual void SetFeatureClassName(FdoString* value) = 0; 143 144 /// \brief 145 /// Executes the GetFeatureClassStyles command and returns a 146 /// FdoStringCollection, which contains all styles supported by specific feature class. 147 147 /// 148 148 /// \return … … 152 152 }; 153 153 154 class FdoWmsGet LayerStylesCommand : public FdoWmsCommand< FDOIGetLayerStyles >154 class FdoWmsGetFeatureClassStylesCommand : public FdoWmsCommand< FDOIGetFeatureClassStyles > 155 155 { 156 156 friend class FdoWmsConnection; … … 160 160 // Prevent the use of the copy constructor by definning it and not implemeting it. 161 161 // DO NOT IMPLEMENT 162 FdoWmsGet LayerStylesCommand (const FdoWmsGetLayerStylesCommand &right);162 FdoWmsGetFeatureClassStylesCommand (const FdoWmsGetFeatureClassStylesCommand &right); 163 163 164 164 // <summary>Constructs an instance of a command for the given connection. </summary> 165 165 // <returns>Returns nothing</returns> 166 FdoWmsGet LayerStylesCommand (FdoIConnection* connection);166 FdoWmsGetFeatureClassStylesCommand (FdoIConnection* connection); 167 167 168 168 // <summary>Virtual Destructor.</summary> 169 169 // <returns>Returns nothing</returns> 170 virtual ~ FdoWmsGet LayerStylesCommand (void);170 virtual ~ FdoWmsGetFeatureClassStylesCommand (void); 171 171 172 172 // <summary>Dispose this object.</summary> … … 178 178 // Prevent the use of the Assignment Operation by definning it and not implemeting it. 179 179 // DO NOT IMPLEMENT 180 FdoWmsGet LayerStylesCommand & operator= (const FdoWmsGetLayerStylesCommand &right);181 182 /// <summary> Gets the name of the layerto get all supported styles. </summary>183 /// <returns>Returns the layername</returns>184 virtual FdoString* Get LayerName ();185 186 /// <summary> Sets the name of the layerto get all supported styles180 FdoWmsGetFeatureClassStylesCommand & operator= (const FdoWmsGetFeatureClassStylesCommand &right); 181 182 /// <summary> Gets the name of the feature class to get all supported styles. </summary> 183 /// <returns>Returns the feature class name</returns> 184 virtual FdoString* GetFeatureClassName (); 185 186 /// <summary> Sets the name of the FeatureClass to get all supported styles 187 187 /// This function is mandatory; if not specified, 188 188 /// execution of the command will throw exception. 189 189 /// </summary> 190 /// <param name="value">Input the layername</param>191 /// <returns>Returns nothing</returns> 192 virtual void Set LayerName (FdoString* value);190 /// <param name="value">Input the FeatureClass name</param> 191 /// <returns>Returns nothing</returns> 192 virtual void SetFeatureClassName (FdoString* value); 193 193 194 194 /// <summary> 195 /// Executes the Get LayerStyles command and returns a196 /// FdoStringCollection, which contains entire styles supported by layer.197 /// <returns> Returns the style collection supported by layer.195 /// Executes the GetFeatureClassStyles command and returns a 196 /// FdoStringCollection, which contains entire styles supported by FeatureClass. 197 /// <returns> Returns the style collection supported by FeatureClass. 198 198 ///</returns> 199 199 virtual FdoStringCollection* Execute (); 200 200 201 201 private: 202 FdoStringP m LayerName;203 }; 204 }}} 205 206 The following is an example of how WMS Get LayerCRSNames command would be used to get the entire supported image formats list from WMS server after connection.207 {{{ 208 FdoPtr<FdoIGet LayerCRSNames> cmd = static_cast<FdoIGetLayerCRSNames*> (conn->CreateCommand (FdoCommandType_GetLayerSupportedCRSNames));209 cmd->Set LayerName(L“ABC”);202 FdoStringP mFeatureClassName; 203 }; 204 }}} 205 206 The following is an example of how WMS GetFeatureClassCRSNames command would be used to get the entire supported image formats list from WMS server after connection. 207 {{{ 208 FdoPtr<FdoIGetFeatureClassCRSNames> cmd = static_cast<FdoIGetFeatureClassCRSNames*> (conn->CreateCommand (FdoCommandType_GetFeatureClassSupportedCRSNames)); 209 cmd->SetFeatureClassName(L“ABC”); 210 210 FdoPtr<FdoStringCollection> result = cmd->Execute (); 211 211 }}} 212 212 213 213 {{{ 214 class FdoIGet LayerCRSNames: public FdoICommand214 class FdoIGetFeatureClassCRSNames: public FdoICommand 215 215 { 216 216 friend class FdoIConnection; … … 218 218 public: 219 219 /// \brief 220 /// Gets the name of the layerto get all supported styles.221 /// 222 /// \return 223 /// Returns the layername224 /// 225 FDO_API virtual FdoString* Get LayerName() = 0;226 227 /// \brief 228 /// Sets the name of the layerto get all supported styles.220 /// Gets the name of the FeatureClass to get all supported styles. 221 /// 222 /// \return 223 /// Returns the FeatureClass name 224 /// 225 FDO_API virtual FdoString* GetFeatureClassName() = 0; 226 227 /// \brief 228 /// Sets the name of the FeatureClass to get all supported styles. 229 229 /// This function is mandatory; if not specified, 230 230 /// execution of the command will throw exception. 231 231 /// 232 232 /// \param value 233 /// Input the layername233 /// Input the FeatureClass name 234 234 /// 235 235 /// \return 236 236 /// Returns nothing 237 237 /// 238 FDO_API virtual void Set LayerName(FdoString* value) = 0;238 FDO_API virtual void SetFeatureClassName(FdoString* value) = 0; 239 239 240 240 /// \brief … … 248 248 }; 249 249 250 class FdoWmsGet LayerCRSNamesCommand: public FdoWmsCommand< FdoIGetLayerCRSNames >250 class FdoWmsGetFeatureClassCRSNamesCommand: public FdoWmsCommand< FdoIGetFeatureClassCRSNames > 251 251 { 252 252 friend class FdoWmsConnection; … … 256 256 // Prevent the use of the copy constructor by definning it and not implemeting it. 257 257 // DO NOT IMPLEMENT 258 FdoWmsGet LayerCRSNamesCommand (const FdoWmsGetLayerCRSNamesCommand &right);258 FdoWmsGetFeatureClassCRSNamesCommand (const FdoWmsGetFeatureClassCRSNamesCommand &right); 259 259 260 260 // <summary>Constructs an instance of a command for the given connection. </summary> 261 261 // <returns>Returns nothing</returns> 262 FdoWmsGet LayerCRSNamesCommand (FdoIConnection* connection);262 FdoWmsGetFeatureClassCRSNamesCommand (FdoIConnection* connection); 263 263 264 264 // <summary>Virtual Destructor.</summary> 265 265 // <returns>Returns nothing</returns> 266 virtual ~ FdoWmsGet LayerCRSNamesCommand (void);266 virtual ~ FdoWmsGetFeatureClassCRSNamesCommand (void); 267 267 268 268 // <summary>Dispose this object.</summary> … … 274 274 // Prevent the use of the Assignment Operation by defining it and not implementing it. 275 275 // DO NOT IMPLEMENT 276 FdoWmsGet LayerCRSNamesCommand & operator= (const FdoWmsGetLayerCRSNamesCommand &right);277 278 /// <summary> Gets the name of the layerto get all supported CRS names. </summary>279 /// <returns>Returns the layername</returns>280 virtual FdoString* Get LayerName ();281 282 /// <summary> Sets the name of the layerto get all supported CRS names.276 FdoWmsGetFeatureClassCRSNamesCommand & operator= (const FdoWmsGetFeatureClassCRSNamesCommand &right); 277 278 /// <summary> Gets the name of the FeatureClass to get all supported CRS names. </summary> 279 /// <returns>Returns the FeatureClass name</returns> 280 virtual FdoString* GetFeatureClassName (); 281 282 /// <summary> Sets the name of the FeatureClass to get all supported CRS names. 283 283 /// This function is mandatory; if not specified, 284 284 /// execution of the command will throw exception. 285 285 /// </summary> 286 /// <param name="value">Input the layername</param>287 /// <returns>Returns nothing</returns> 288 virtual void Set LayerName (FdoString* value);286 /// <param name="value">Input the FeatureClass name</param> 287 /// <returns>Returns nothing</returns> 288 virtual void SetFeatureClassName (FdoString* value); 289 289 290 290 /// <summary> 291 /// Executes the Get LayerCRSNames command and returns a292 /// FdoStringCollection, which contains entire CRS names supported by layer.293 /// <returns> Returns the CRS names collection supported by layer.291 /// Executes the GetFeatureClassCRSNames command and returns a 292 /// FdoStringCollection, which contains entire CRS names supported by FeatureClass. 293 /// <returns> Returns the CRS names collection supported by FeatureClass. 294 294 ///</returns> 295 295 virtual FdoStringCollection* Execute (); 296 296 297 297 private: 298 FdoStringP m LayerName;298 FdoStringP mFeatureClassName; 299 299 }; 300 300 }}}