MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgFeatureReader* MgFeatureService::InsertFeatures ( MgResourceIdentifier resource,
CREFSTRING  className,
MgBatchPropertyCollection batchPropertyValues 
) [pure virtual]

Inserts a set of new features into the specified feature class of the specified Feature Source.

.NET Syntax
virtual MgFeatureReader InsertFeatures(MgResourceIdentifier resource, string className, MgBatchPropertyCollection batchPropertyValues);
Java Syntax
virtual MgFeatureReader InsertFeatures(MgResourceIdentifier resource, String className, MgBatchPropertyCollection batchPropertyValues);
PHP Syntax
virtual MgFeatureReader InsertFeatures(MgResourceIdentifier resource, String className, MgBatchPropertyCollection batchPropertyValues);
Parameters:
resource(MgResourceIdentifier) A resource identifier for the feature source.
className(String/string) The name of the feature class on which the insert operation is performed.
batchPropertyValues(MgBatchPropertyCollection) The collection of property values to insert. Each MgPropertyCollection within this collection represents property values for a single feature to insert
Returns:
Returns a feature reader object that contains the set of properties inserted into the datastore by the insert command.
Remarks:
Remember to close any feature readers returned by this method, even if you don't intend to do anything with them
Exceptions:
MgFeatureServiceException
MgInvalidArgumentException
MgInvalidOperationException
MgFdoException
Since:
3.0