Android 10.2.9 SDK 加载离线geodatabase 失败

我用ArcGIS RunTime for Android SDK10.2.9加载离线 geodatabase数据失败,使用的方法为
    //加载GDB文件
private void onLoadGDB(String path){
Geodatabase geodatabase =null;
try {
geodatabase =new Geodatabase(path);
} catch (Exception e) {
e.printStackTrace();
}
if (geodatabase != null) {
for (GeodatabaseFeatureTable gdbFeatureTable : geodatabase.getGeodatabaseTables()) {
if (gdbFeatureTable.hasGeometry()){
FeatureLayer layer = new FeatureLayer(gdbFeatureTable);
mMapView.addLayer(layer);
}
}
}

}
手机权限已配置,geodatabase文件的存放位置也是正确的,因为我在相同的文件夹路径下加载TPK切片数据是可以正常加载并且显示的。
手机Android SDK 的版本为5.1。
TIM截图20170922171234.png TIM截图20170922171454.png
已邀请:

勾戈雪黎

赞同来自:

getGeodatabaseTables()返回的是一个list, 根据你的参数定义应该使用getGeodatabaseFeatureTableByLayerId(int layer)方法。
参考:https://developers.arcgis.com/ ... .html

要回复问题请先登录注册