Android 10.2.9 SDK 加载离线geodatabase 失败
我用ArcGIS RunTime for Android SDK10.2.9加载离线 geodatabase数据失败,使用的方法为
手机Android SDK 的版本为5.1。
//加载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。
1 个回复
勾戈雪黎
赞同来自:
参考:https://developers.arcgis.com/ ... .html
要回复问题请先登录或注册