Hi there,
i'm a gis programmer in china and not good at english.
recently , when i insert a row to a table in "File Geodatabase API 1.2", there throw a exception "The user does not have permission to execute the operation".
[ATTACH=CONFIG]16230[/ATTACH]
i think it's because some table object in .gdb file can not be edited. are there any function to set table's editable status such as StartEditing()\StartEditOperation in AE?
the following example code is wrote in VS 2010(C#):
try
{
string gdbfile = @"E:\test3.gdb";
Geodatabase geodatabase = Geodatabase.Open(gdbfile);
//open table
Esri.FileGDB.Table ptable = geodatabase.OpenTable("RegulatedAreasAndLimitsP");
if (!ptable.IsEditable)
{
MessageBox.Show("can not edit");
}
//create row
Esri.FileGDB.Row cabazonRow = ptable.CreateRowObject();
PointShapeBuffer cabazonGeom = new PointShapeBuffer();
cabazonGeom.Setup(ShapeType.Point);
cabazonGeom.point.x = 10.0;
cabazonGeom.point.y = 20.0;
cabazonRow.SetGeometry(cabazonGeom);
//store the row
ptable.Insert(cabazonRow);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}