Creates an update feature data command. You must add this command to an MgFeatureCommandCollection object and pass the latter in a call to MgFeatureService::UpdateFeatures.
More...
List of all members.
Detailed Description
Creates an update feature data command. You must add this command to an MgFeatureCommandCollection object and pass the latter in a call to MgFeatureService::UpdateFeatures.
-
Get the property definitions for the class. See MgClassDefinition::GetProperties Method . As a minimum, you must create property values for each of the properties defined as mandatory. See MgDataPropertyDefinition::GetNullable Method and MgRasterPropertyDefinition::GetNullable Method .
-
Create a property object for each property value appropriate to the type of the value; for example, use the MgGeometryProperty class to create an object containing a geometry value and use the MgBooleanProperty class to create an object containing a boolean value; the property class constructor is passed the name of the property and its value. See Feature Properties .
-
Add each property object to an MgPropertyCollection object
-
Create the update command. Pass the class name, the property collection, and the filter text expression to the MgUpdateFeatures::MgUpdateFeatures Constructor (CREFSTRING, MgPropertyCollection*, CREFSTRING) .
-
Add the MgInsertFeatures object to an MgFeatureCommandCollection object.
-
Execute the MgFeatureServices::UpdateFeatures() method; the arguments are a resource identifier for the feature source and the MgFeatureCommandCollection object.
-
Check the result. The result is an MgPropertyCollection object. For each update command, there will be one property of type MgPropertyType::Int32 in the returned collection. The index of this property matches the index of the update command in the feature command collection passed to MgFeatureService::UpdateFeatures.