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

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

.NET Syntax
virtual MgFeatureReader InsertFeatures(MgResourceIdentifier resource, string className, MgPropertyCollection propertyValues, MgTransaction trans);
Java Syntax
virtual MgFeatureReader InsertFeatures(MgResourceIdentifier resource, String className, MgPropertyCollection propertyValues, MgTransaction trans);
PHP Syntax
virtual MgFeatureReader InsertFeatures(MgResourceIdentifier resource, String className, MgPropertyCollection propertyValues, MgTransaction trans);
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.
propertyValues(MgPropertyCollection) The collection of property values to insert
trans(MgTransaction) The transaction to execute this operation under
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