public static IWorkspaceEdit StratEdit() { IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)ArcGisController.GetIFeatureWorkspace(); workspaceEdit.StartEditing(true); workspaceEdit.StartEditOperation(); return(workspaceEdit); }
public static IFeatureCursor FindDatabseCussor(string layerName, string sql) { IFeatureWorkspace space = ArcGisController.GetIFeatureWorkspace(); IFeatureClass pFeatureClass = space.OpenFeatureClass(layerName); IQueryFilter queryFilter = new QueryFilterClass(); if (Utils.IsStrNull(sql)) { queryFilter = null; } else { queryFilter.WhereClause = sql; } IFeatureCursor pCursor = pFeatureClass.Search(queryFilter, false); return(pCursor); }