Changes between Version 2 and Version 3 of MapGuideRfc77
- Timestamp:
- 07/08/09 23:01:14 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc77
v2 v3 28 28 == Motivation == 29 29 30 Currently method MgFeatureService:: CreateFeatureSource() supports creating a SDF feature source only. It is really a limitation of Feature Service. This RFC will extend this method to support all file based feature sources.30 Currently method MgFeatureService::!CreateFeatureSource() supports creating a SDF feature source only. It is really a limitation of Feature Service. This RFC will extend this method to support all file based feature sources. 31 31 32 32 == Proposed Solution == 33 33 34 ==== MgFileFeatureSourceParams ====35 36 A new class MgFileFeatureSourceParams is added to represent parameters which are used to create a file-based feature source. The existing class MgCreateSdfParams inherits from it. Previously MgCreateSdfParams inherits from virtual base classMgFeatureSourceParams directly as shown in the following picture.37 38 The class definition of MgFileFeatureSourceParams is as follows.34 ==== !MgFileFeatureSourceParams ==== 35 36 A new class !MgFileFeatureSourceParams is added to represent parameters which are used to create a file-based feature source. The existing class !MgCreateSdfParams inherits from it. Previously !MgCreateSdfParams inherits from virtual base class !MgFeatureSourceParams directly as shown in the following picture. 37 38 The class definition of !MgFileFeatureSourceParams is as follows. 39 39 40 40 {{{ 41 /////////////////////////////////////////////// 41 42 /// \brief 42 /// Contains the parameters used to create an file-based feature source. 43 /// Contains the parameters used to create an file-based 44 /// feature source. 43 45 /// 44 46 class MgFileFeatureSourceParams : public MgFeatureSourceParams … … 48 50 /// \brief 49 51 /// Constructs an empty MgFileFeatureSourceParams object. 50 ///51 /// The FDO provider name of the feature source.52 /// 53 /// The FDO provider name of the feature source. 52 54 /// \param spatialContextName (String/string) 53 55 MgFileFeatureSourceParams (CREFSTRING providerName); 54 56 55 57 /////////////////////////////////////////////// 56 ///brief58 ///brief 57 59 /// Constructs an MgFileFeatureSourceParams object with the supplied 58 /// parameters.60 /// parameters. 59 61 /// \param providerName (String/string) 60 /// FDO provider name of the feature source to be created.62 /// FDO provider name of the feature source to be created. 61 63 /// \param spatialContextName (String/string) 62 /// The name of the spatial context. This is a user defined spatial63 /// context for the file feature source.64 /// The name of the spatial context. This is a user defined spatial 65 /// context for the file feature source. 64 66 /// \param srsWkt (String/string) 65 /// An OGC WKT string representing the coordinate system for the file66 /// feature source.67 /// An OGC WKT string representing the coordinate system for the file 68 /// feature source. 67 69 /// \param featureSchema (MgFeatureSchema) 68 70 /// The schema definition for the file feature source. … … 71 73 /// Returns nothing. 72 74 /// 73 MgFileFeatureSourceParams (74 CREFSTRING providerName,75 CREFSTRING spatialContextName,76 CREFSTRING srsWkt,77 MgFeatureSchema* featureSchema);75 MgFileFeatureSourceParams ( 76 CREFSTRING providerName, 77 CREFSTRING spatialContextName, 78 CREFSTRING srsWkt, 79 MgFeatureSchema* featureSchema); 78 80 79 81 /////////////////////////////////////////////// … … 81 83 /// Gets the FDO provider name of the feature source. 82 84 /// 83 /// \return85 /// \return 84 86 /// Returns the FDO provider name of the feature source. 85 87 /// 86 88 virtual STRING GetProviderName(); /// __get 87 /////////////////////////////////////////////// 88 /// \brief 89 /// Gets the file name to be created or the folder name where files are created. 90 /// 91 /// \return 89 90 /////////////////////////////////////////////// 91 /// \brief 92 /// Gets the file name to be created or the folder name where files are created. 93 /// 94 /// \return 92 95 /// Returns the file name to be created or the folder name where files are created. 93 96 ///