【发布时间】:2015-11-24 05:00:15
【问题描述】:
我正在尝试使用 ShapefileFeatureTable() 来读取 android 中的形状文件。无论我给出什么路径,它都会显示“找不到文件”异常。
try
{
ShapefileFeatureTable shpFileFeatTable = new ShapefileFeatureTable("/storage/sdcard/map.shp");
}
catch (FileNotFoundException e)
{
e.printStackTrace();
}
catch(Exception e)
{
e.printStackTrace();
}
谁能帮帮我?
注意:我正在开发 Android 模拟器。我也在使用 arcGIS 库。
【问题讨论】:
-
尝试使用
Environment.getExternalStorageDirectory()获取路径