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.
如何解决这个问题呢??
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.
如何解决这个问题呢??
2 个回复
张赛
赞同来自:
因此,请先判断您这里的geodatabase是否满足此前提条件:(1)geodatabase是否来自于feature service;(2)feature service是否启用了sync功能。
勾戈雪黎
赞同来自:
要回复问题请先登录或注册
发起人
相关问题
问题状态