AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

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.

Note:
This is not valid with AutoCAD Map 3D. It works with MapGuide only.
Remarks:
MgFeatureSourceParams is an abstract class. Currently the only concrete class is MgCreateSdfParams, and the only feature source that can be created this way is an SDF file. You can use this method to create an SDF file with the same schema and spatial context definition as the provider that you are connected to.
.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.