Changes between Version 5 and Version 6 of MapGuideRfc77


Ignore:
Timestamp:
Jul 8, 2009, 11:11:52 PM (15 years ago)
Author:
leaf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc77

    v5 v6  
    242242}}}
    243243
    244 ==== Changes to Feature Service ====
    245 
    246 Feature Service will be extended to add one method to apply a schema.
     244==== Changes to !MgCreateSdfParams ====
     245
     246
    247247
    248248{{{
    249 class MgFeatureService : public MgService
     249/// \brief
     250/// Contains the parameters used to create an SDF feature source.
     251///
     252class MgCreateSdfParams : public MgFileFeatureSourceParams
    250253{
    251254PUBLISHED_API:
    252     /// \brief
    253     /// Creates or updates a feature schema within the DataStore.
    254     ///
    255     /// \param resource (MgResourceIdentifier)
    256     /// A resource identifier referring to a feature source.
    257     /// \param schema
    258     /// Input schema to be created or updated.
    259     ///
    260     /// \return
    261     /// Returns nothing.
    262     ///
    263     virtual void ApplySchema(
    264                          MgResourceIdentifier* resource,
    265                          MgFeatureSchema* schema) = 0;
     255    //////////////////////////////////////////////////
     256    /// \brief
     257    /// Constructs an empty MgCreateSdfParams object.
     258    ///
     259    /// \return
     260    /// Returns nothing.
     261    ///
     262    MgCreateSdfParams();
     263
     264    ////////////////////////////////////////////////////
     265    /// \brief
     266    /// Constructs an MgCreateSdfParams object with the supplied
     267    /// parameters.
     268    ///
     269    /// \param spatialContextName (String/string)
     270    /// The name of the spatial context. This is a user defined
     271    /// spatial context for the SDF file. Only one spatial context is
     272    /// supported.
     273    /// \param srsWkt (String/string)
     274    /// An OGC WKT string representing the
     275    /// coordinate system for the SDF file.
     276    /// \param featureSchema (MgFeatureSchema)
     277    /// The schema definition for the SDF file.
     278    ///
     279    /// \return
     280    /// Returns nothing.
     281    ///
     282    MgCreateSdfParams(
     283        CREFSTRING spatialContextName,
     284        CREFSTRING srsWkt,
     285        MgFeatureSchema* featureSchema);
     286
     287    ///////////////////////////////////////////////
     288    /// \brief
     289    /// Gets the FDO provider name of the feature source.
     290    ///
     291   /// \return
     292    /// Returns the FDO provider name of the feature source.
     293    ///
     294    virtual STRING GetProviderName();  /// __get
    266295};
    267296}}}
    268297
    269 ==== Changes to !MgPropertyType ====
    270 
    271 Many FDO data sources support decimal property type. Users can add a decimal property in a feature class in those datasources. However, class !MgPropertyType doesn't define a decimal property type. So we will extend class !MgPropertyType to add a new type name 'Decimal' so that method MgFeatureService::!ApplySchema(...) can handle the decimal property.
    272 
    273 {{{
    274 class MgPropertyType
    275 {
    276 PUBLISHED_API:
    277     ......
    278     ///////////////////////////////////////////////////
    279     /// \brief
    280     /// Type name for a decimal property.
    281     ///
    282     /// \remarks
    283     /// This property type name is currently used to
    284     /// apply schema only.
    285     static const int Decimal     =  15;
    286 };
    287 }}}
     298There are no change to method MgFeatureService.CreateFeatureSource(), whose usage is as before.
    288299
    289300== Implications ==
     
    291302This is new API only. There will be no effect on existing applications. However, API documentation need to be updated.
    292303
    293 Currently, there is no enough resources and funding to support creating non-file based feature source. They may be implemented if resources and funding can be obtained in the future.
     304Currently, there is no enough resources and funding to support creating non-file based feature sources. They may be implemented if resources and funding can be obtained in the future.
    294305
    295306== Test Plan ==