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 MgPropertyCollection* MgFeatureService::UpdateFeatures | ( | MgResourceIdentifier * | resource,
|  | MgFeatureCommandCollection * | commands,
|  | bool | useTransaction |
| ) |  |  | `[pure virtual]`
Executes the MgDeleteFeatures, MgInsertFeatures, MgUpdateFeatures, MgLockFeatures or MgUnlockFeatures commands contained in the given MgFeatureCommandCollection object. Remarks: The XML returned by MgFeatureService::GetCapabilities says whether a provider supports SQL commands. See Provider Capabilities . .NET Syntax
`virtual MgPropertyCollection UpdateFeatures(MgResourceIdentifier resource, MgFeatureCommandCollection commands, bool useTransaction);`
Java Syntax
`virtual MgPropertyCollection UpdateFeatures(MgResourceIdentifier resource, MgFeatureCommandCollection commands, boolean useTransaction);`
PHP Syntax
`virtual MgPropertyCollection UpdateFeatures(MgResourceIdentifier resource, MgFeatureCommandCollection commands, bool useTransaction);`
  Parameters:
  | resource | (MgResourceIdentifier) A resource identifier for the feature source.
  | commands | (MgFeatureCommandCollection) A collection of feature commands to be executed.
  | useTransaction | (boolean/bool) If true and transactions are supported by the Fdo provider, execute all commands inside a transaction. If false, do not use a transaction.
  Returns: Returns an MgPropertyCollection object. Each property in the collection corresponds to a command in the MgFeatureCommandCollection argument. The property name is the index of the command in the feature command collection. If the command is of type MgDeleteFeatures, the property type is an MgPropertyType::Int32, and its value is the number of features deleted. If the command is of type MgInsertFeatures, the property type is an MgPropertyType::Feature, and its value is a MgFeatureReader object. The feature reader object contains the set of properties inserted into the datastore by the insert command. If the command is of type MgUpdateFeatures, the property type is MgPropertyType::Int32, and its value is the number of features updated. If the command is of type MgLockFeatures, the property type is MgPropertyType::Feature, and its value is the number of features locked. If the command is of type MgUnLockFeatures, the property type is MgPropertyType::Int32, and its value is the number of features unlocked. Exceptions:
  | MgFeatureServiceException |
  | MgInvalidArgumentException |
  | MgInvalidOperationException |
  | MgFdoException |

Comments or suggestions? Send us feedback.