MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual void MgFeatureService::CreateFeatureSource ( MgResourceIdentifier resource,
MgFeatureSourceParams sourceParams 
) [pure virtual]

Creates a feature source in the repository identified by the specified resource identifier, using the given feature source parameters.

Remarks:
MgFeatureSourceParams is an abstract class. MgFileFeatureSourceParams is the only concrete class and SDF, SHP and SQLite feature source can be created only. If no well-know text format coordinate system is specified in argument sourceParams, this method will not create spatial context for the feature source. For SHP feature source, a feature class must be specified. Otherwise, an MgInvalidArgumentException will be thrown.
.NET Syntax
virtual void CreateFeatureSource(MgResourceIdentifier resource, MgFeatureSourceParams sourceParams);
Java Syntax
virtual void CreateFeatureSource(MgResourceIdentifier resource, MgFeatureSourceParams sourceParams);
PHP Syntax
virtual void CreateFeatureSource(MgResourceIdentifier resource, MgFeatureSourceParams sourceParams);
Parameters:
resource(MgResourceIdentifier) The resource identifier defining the location of the new feature source in the repository.
sourceParams(MgFeatureSourceParams) The feature source parameters (feature schema and spatial context definitions).
Returns:
Returns nothing.