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 |
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 | | }}} |
| 298 | There are no change to method MgFeatureService.CreateFeatureSource(), whose usage is as before. |