arcgis android 中 Geodatabase geodata = new Geodatabase(filepath);得到geodata为空
Stringfilepath="file://"+eneniment+"/mapdata/kq.geodatabase";try{Geodatabasegeodata=n...
String filepath ="file://"+eneniment + "/mapdata/kq.geodatabase";
try {
Geodatabase geodata = new Geodatabase(filepath);
// List<GeodatabaseFeatureTable> table = geodata
// .getGeodatabaseTables();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} 展开
try {
Geodatabase geodata = new Geodatabase(filepath);
// List<GeodatabaseFeatureTable> table = geodata
// .getGeodatabaseTables();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} 展开
展开全部
进入调试,看一下你的filepath是否正确。我用的是
public static final String GEO_FILENAME="/OfflineVector/dldata.geodatabase";
String filename=Environment.getExternalStorageDirectory().getAbsolutePath()+GEO_FILENAME;
try {
geodatabase =new Geodatabase(filename);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
不过过了这么久了,你也应该已经解决问题了吧,权当给其他网友参考了。
public static final String GEO_FILENAME="/OfflineVector/dldata.geodatabase";
String filename=Environment.getExternalStorageDirectory().getAbsolutePath()+GEO_FILENAME;
try {
geodatabase =new Geodatabase(filename);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
不过过了这么久了,你也应该已经解决问题了吧,权当给其他网友参考了。
来自:求助得到的回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询