Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

CreateFeatureSource
DescribeSchema
DescribeSchema
DescribeSchemaAsXml
DescribeSchemaAsXml
DescribeWfsFeatureType
EnumerateDataStores
ExecuteSqlNonQuery
ExecuteSqlQuery
GetCapabilities
GetClassDefinition
GetClasses
GetConnectionPropertyValues
GetFeatureProviders
GetLockedFeatures
GetLongTransactions
GetSchemaMapping
GetSchemas
GetSpatialContexts
GetWfsFeature
SchemaToXml
SelectAggregate
SelectFeatures
SelectFeatures
SetLongTransaction
TestConnection
TestConnection
UpdateFeatures
XmlToSchema
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. 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.

Comments or suggestions? Send us feedback.