Update Feature records in ArcGIS 10

المشرف العام

Administrator
طاقم الإدارة
I have to update multiple feature records in ArcGIS through ArcObjects. Below is my code.

It's running fine for first time but it's giving me error while it's going to run the queryfilter for nexttime it's giving me error "Insufficient permissions".

foreach (test toProcess in forProcess)

{ int OID = toProcess.R1; int GISID = toProcess.R2; double sLength = toProcess.R3;

string wherec = "OBJECTID = '" + OID + "' AND GISID = '" + GISID + "'"; //initialize queryfilter queryFilter.SubFields = "*"; queryFilter.WhereClause = wherec; //search through queryfilter IFeatureCursor featureCursor2 = featureClass.Search(queryFilter, false); //Get the output features IFeature featurenew = featureCursor2.NextFeature(); //while (featurenew != null) (not using as at a time only 1 feature) //{ IObject pObject = featurenew; int iNewTag = GISAUConstants.kiNoSequenceValue; // Get a new tag value from tag sequence within workspace. iNewTag = CommonFunct.GetSequenceValue(GISAUConstants.ksGISIDSequenceName, workspace); if (iNewTag
 
أعلى