ArcGIS Runtime SDK for Android使用离线Geodatabase数据,添加Feature时,报Ownership-based access control does not permit this operation on this feature. - The service does not have "create" capability. 什么原因?

i=0;
mGeodatabase = new Geodatabase(mGeoPath);

mGeofeatureTable=mGeodatabase.getGeodatabaseFeatureTableByLayerId(i); 
String tablename=mGeofeatureTable.getTableName(); 
FeatureLayer FeatureLayer=new FeatureLayer(mGeofeatureTable);

FeatureLayer.getFeatureTable().addFeature(mGraphic);//报错
错误内容为:com.esri.core.table.TableException: Ownership-based access control does not permit this operation on this feature. - The service does not have "create" capability.
 
如何解决这个问题呢??
已邀请:

张赛

赞同来自:

移动端的离线编辑过程中,对应的geodatabase的获取必须满足如下条件:geodatabase来自于启用了sync功能的feature service。
因此,请先判断您这里的geodatabase是否满足此前提条件:(1)geodatabase是否来自于feature service;(2)feature service是否启用了sync功能。

勾戈雪黎

赞同来自:

如果您是直接编辑从桌面生成的geodatabase,则会报上面的错误,建议采纳楼上建议,从服务端生成geodatabase进行编辑。

要回复问题请先登录注册