Is there any possibility to edit a great amout of rows ?I think about this because the the field calculator of arcmap works quite fast.The onlything i found was somthing likepublic void UseUpdateCursor(IFeatureClass featureClass)
{
// Restrict the number of features to be updated.
IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.WhereClause = "NAME = 'Highway 104'";
queryFilter.SubFields = "TYPE";
// Use IFeatureClass.Update to populate IFeatureCursor.
IFeatureCursor updateCursor = featureClass.Update(queryFilter, false);
int typeFieldIndex = featureClass.FindField("TYPE");
IFeature feature = null;
try
{
while ((feature = updateCursor.NextFeature()) != null)
{
feature.set_Value(typeFieldIndex, "Toll Highway");
updateCursor.UpdateFeature(feature);
}
}
catch (COMException comExc)
{
// Handle any errors that might occur on NextFeature().
}
// If the cursor is no longer needed, release it.
Marshal.ReleaseComObject(updateCursor);
}But that takes 5 seconds for just 2000 rows... what is not as fast as I hoped..Is there a way to do it faster? I ask because the field calculator does that much faster.