// Performs a sequence of editing operations on a feature, including clipping, cutting, and planarizing.
await QueuedTask.Run(() =>
{
//Multiple operations can be performed by a single
//edit operation.
var clipCutPlanarizeFeatures = new EditOperation() { Name = "Clip, Cut, and Planarize Features" };
clipCutPlanarizeFeatures.Clip(featureLayer, objectId, clipPolygon);
clipCutPlanarizeFeatures.Split(featureLayer, objectId, cutLine);
clipCutPlanarizeFeatures.Planarize(featureLayer, objectId);
if (!clipCutPlanarizeFeatures.IsEmpty)
{
//Note: An edit operation is a single transaction.
//Execute the operations (in the order they were declared)
//Execute and ExecuteAsync will return true if the operation was successful and false if not
clipCutPlanarizeFeatures.Execute();
//or use async flavor
//await clipCutPlanarizeFeatures.ExecuteAsync();
}
});