首页 / 浏览问题 / 移动GIS / 问题详情
recordset.addNew
55EXP 2020年09月23日
GeoPoint geoPoint = new GeoPoint(Double.valueOf(dataList.get(i).get(1)),Double.valueOf(dataList.get(i).get(2)));
Map<String,Object> propertyMap = new HashMap<>();
propertyMap.put("FYP", "#\\*%\\*#" + dataList.get(i).get(0));
Log.e("FYP",dataList.get(i).get(0)+"/"+dataList.get(i).get(1)+"/"+dataList.get(i).get(2)+"/"+dataList.get(i).get(3));
editRecordset.addNew(geoPoint,propertyMap);
editRecordset.update();
TrackingLayerUtils.setDatasetLabelTrackingLayer(mapControl.getMap(),dataset,"FYP",true);

您好,addNew(geomtry,map)没有执行,我在前面增加了属性字段,但是这个命令虽然能增加进数据集,但是属性却没有增加???请问我是哪里使用有问题吗?请不吝赐教。 ps: 我的数据没问题,我都打印出来了。

1个回答

您好,您的数据集中存在‘FYP’这个字段吗?您那边可以在帮助文档搜索:BatchEditor类。里面有详细的添加几何对象和字段值的代码
9,302EXP 2020年09月24日
您好,关于之前ANR的问题,报错您看看:A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xcb701ad0 in tid 24211 (om.example.zsbf), pid 24211 (om.example.zsbf)

我网上搜人家说是这是jni导致的,那不就是jar包这些吗??
这个报错需要看具体的日志,这句话是看不出哪里有问题的。你可以看一下logcat里面的具体输出日志
2020-09-23 22:12:57.292 29233-29233/? A/DEBUG:       #54 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)
2020-09-23 22:12:57.293 29233-29233/? A/DEBUG:       #73 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)
2020-09-24 08:45:51.310 30752-30752/? A/DEBUG:       #54 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)
2020-09-24 08:45:51.311 30752-30752/? A/DEBUG:       #73 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)
2020-09-24 08:57:04.073 4051-4051/? E/curitycenter:u: Not starting debugger since process cannot load the jdwp agent.
2020-09-24 08:57:04.615 4051-4140/? E/Perf: Fail to get file list com.miui.securitycenter
2020-09-24 08:57:12.291 4420-4420/? A/DEBUG:       #54 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)
2020-09-24 08:57:12.292 4420-4420/? A/DEBUG:       #73 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)
2020-09-24 08:57:15.671 2520-2520/? E/NavStubView: enterHomeHoldState
2020-09-24 09:01:59.637 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:06:14.809 7014-7043/? E/Perf: Fail to get file list com.miui.securitycenter
2020-09-24 09:07:37.184 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to foreground
2020-09-24 09:09:07.211 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to  background
2020-09-24 09:09:32.854 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to foreground
2020-09-24 09:10:15.679 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:10:16.264 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to  background
2020-09-24 09:10:54.819 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:11:09.773 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to foreground
2020-09-24 09:11:41.118 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to  background
2020-09-24 09:12:06.713 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:12:15.391 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to foreground
2020-09-24 09:12:16.590 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to  background
2020-09-24 09:12:54.714 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:12:54.986 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to foreground
2020-09-24 09:16:14.181 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to  background
2020-09-24 09:16:45.544 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to foreground
2020-09-24 09:20:02.329 10972-11039/? E/ArkApp.ArkStateCenter: ark state change to  background
2020-09-24 09:29:42.748 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:30:41.606 16595-16611/? E/FloatWindowImpl: com.miui.securitycenter
2020-09-24 09:30:41.871 18157-18184/? E/Perf: Fail to get file list com.miui.securitycenter
2020-09-24 09:33:46.608 16595-16611/? E/FloatWindowImpl: com.miui.securitycenter
2020-09-24 09:36:23.951 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:36:45.873 16595-16612/? E/FloatWindowImpl: com.miui.securitycenter
2020-09-24 09:38:38.226 21405-21405/? E/curitycenter:u: Not starting debugger since process cannot load the jdwp agent.
2020-09-24 09:38:38.821 21405-21432/? E/Perf: Fail to get file list com.miui.securitycenter
2020-09-24 09:39:25.632 2520-2520/? E/NavStubView: enterRecents
2020-09-24 09:39:28.135 2520-2520/? E/NavStubView: enterHomeHoldState
2020-09-24 09:39:52.664 22176-22215/? E/Perf: Fail to get file list com.miui.securitycenter
2020-09-24 09:42:14.395 2520-2520/? E/NavStubView: enterHomeHoldState
2020-09-24 09:42:31.486 23024-23043/? E/FloatWindowImpl: com.miui.securitycenter
2020-09-24 09:42:54.543 24370-24370/? A/DEBUG:       #54 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)
2020-09-24 09:42:54.544 24370-24370/? A/DEBUG:       #73 pc 001f3203  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: fc246b0a9879bb7c24b2efddf9cd28e5)

您好,这些我就看不懂了,您能看出啥吗?
这段话的前面应该还有错误,麻烦截出来一下
呃呃呃,那你稍等,我在试试,等我下次再遇到了截给您,找到了给您,太感谢了,下面这段是一直在logcat打印,不知道有没有帮助。

2020-09-24 10:06:15.262 911-911/? E/libc: Access denied finding property "ro.hardware.fp.sideCap"
2020-09-24 10:06:15.276 911-911/? E/libc: Access denied finding property "ro.hardware.fp.fod"
2020-09-24 10:06:15.276 911-911/? E/libc: Access denied finding property "ro.hardware.fp.sideCap"
2020-09-24 10:06:16.301 911-911/? E/libc: Access denied finding property "ro.hardware.fp.fod"
2020-09-24 10:06:16.301 911-911/? E/libc: Access denied finding property "ro.hardware.fp.sideCap"
2020-09-24 10:06:16.315 911-911/? E/libc: Access denied finding property "ro.hardware.fp.sideCap"
2020-09-24 10:06:16.657 911-911/? E/libc: Access denied finding property "ro.hardware.fp.fod"
2020-09-24 10:06:16.658 911-911/? E/libc: Access denied finding property "ro.hardware.fp.sideCap"
2020-09-24 10:06:16.668 911-911/? E/libc: Access denied finding property "ro.hardware.fp.fod"
2020-09-24 10:06:16.668 911-911/? E/libc: Access denied finding property "ro.hardware.fp.sideCap"
看这个崩溃日志报的是Android本身的库,您那边具体是做什么操作呢?手机的性能如何
嗯哼,性能还行啊,米8,我现在ANR崩溃的就是打开一个工作空间,就是我之前问你的那个问题。
你们这个ANR是偶尔崩溃还是必定崩溃,地图中图层和图层中的对象比较多呢?如果数据较多建议可以切缓存或者做一些数据的优化:1.矢量数据节点较多,可以使用重采样减少节点个数 2.切地图缓存 3.设置图层的最大最小可见比例尺 4.删除小并且没有意义的对象 5.如果地图采用了动态投影可以先将数据的坐标系通过投影转换转到同一个坐标系
偶尔偶尔,不是必定,必定的话就凉了。不是。我打开的工作空间的时候,我并没有比如操作地图,没有openMap或者二加入其他数据集,就是简单的打开工作空间,然后初始化mapView或者Datasource等控件。
如果只是打开工作空间的话应该是不会出现ANR的,如果方便你可以私信我发一下您的数据。
我感觉和数据没关系,有时候打开示例数据也会这样。
这个确实没有遇到过,您那边使用的iMobile for Android是哪个版本的
最新的,10.01吧
你加我一个联系方式,我给你发一个最新的版本。你用这个最新版本看一下。联系方式私发你
您好,我之前加你QQ了,上次给您发消息您也没回。
...