Arcgis for Android 100.5 读取不了shapefile办法

本文介绍了在ArcGIS for Android 100.5版本中遇到的无法读取shapefile的问题及解决方法。问题表现为程序崩溃或不显示shapefile,错误提示为'Parameter boundingGeometry must not be null'。解决方法是检查文件路径和文件完整性,以及避免移除'Licensed For Developer Use Only'水印,因为移除该水印可能导致此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.首先确保自己的手机上文件路径正确,必须包含(.shp,.shx,.dbf三个文件,放在同一文件夹下)当然,如果加载了底图的话,最好要有投影坐标系文件.prj。

2. 读取shp文件,方法参照(Arcgis for Android之前的配置等工作好多大神写过了的,可以看看他们的系列)

https://blog.youkuaiyun.com/qq_36699930/article/details/82498704

https://blog.youkuaiyun.com/Smart3S/article/details/81138051

主要就是那一句  shapefileTable = new ShapefileFeatureTable(你自己的shp路径);

//示例
public void showShapefile() {
    String  mappath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Map/xzq.shp";
//这一句就读取了!!注意,测试用的shp文件放在Map文件夹下的,按照自己放的位置改路径。
    shapefileTable = new ShapefileFeatureTable(mappath);

    shapefileTable.loadAsync();
    shapefileTable.addDoneLoadingListener(()-> {
        shapefileLayer = new FeatureLayer(shapefileTab
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值