首页 / 浏览问题 / 组件GIS / 问题详情
supermap iobjects 10.2.1 路径分析报错
hs
1EXP 2023年03月29日

使用产品:supermap iobjects 10.2.1 操作系统:win11 x64
数据类型:mysql
问题详细描述:调用交通管网分析的最短路径方法报异常(Handler dispatch failed; nested exception is java.lang.UnsatisfiedLinkError: com.supermap.analyst.networkanalyst.TransportationAnalystParameterNative.jni_SetServiceBufferRadius(JD)V)
问题重现步骤: 


         1.
   TransportationAnalyst m_transAnalyst = new TransportationAnalyst();
   TransportationAnalystSetting analystSetting = new TransportationAnalystSetting();
            analystSetting.setNetworkDataset(networkPipe);
            analystSetting.setEdgeIDField("SmID"); //SMEDGEID
            analystSetting.setNodeIDField("SmNodeID");
            analystSetting.setFNodeIDField("SmFNode");        //SMFNODE		ssfnode
            analystSetting.setTNodeIDField("SmTNode");         //SMTNODE		sstnode
//	  		analystSetting.setTolerance(0);
            WeightFieldInfo weightFieldInfo = new WeightFieldInfo();
	  		weightFieldInfo.setName("SmLength");
            weightFieldInfo.setFTWeightField("SmLength");
            weightFieldInfo.setTFWeightField("SmLength");
            WeightFieldInfos weightFieldInfos = new WeightFieldInfos();
            weightFieldInfos.add(weightFieldInfo);
            analystSetting.setWeightFieldInfos(weightFieldInfos);

            m_transAnalyst.setAnalystSetting(analystSetting);

            //加载网络模型
            boolean load = m_transAnalyst.load();

        2.
 TransportationAnalystParameter __transParameter = new TransportationAnalystParameter();
        System.out.println(node1);
        System.out.println(node2);
        __transParameter.setNodes(new int[]{node1, node2});
        __transParameter.setPathGuidesReturn(true);
        __transParameter.setRoutesReturn(true);
        __transParameter.setStopIndexesReturn(true);
        __transParameter.setNodesReturn(true);
        __transParameter.setEdgesReturn(true);
        __transParameter.setWeightName("smLength");
        __transParameter.setServiceBufferRadius(2.0);
        TransportationAnalystResult __taResult = m_transAnalyst.findPath(__transParameter, true);

1个回答

您好,您所用的这份网络数据集数据在iDesktop或iDesktopX桌面的地图中打开,

使用最佳路径分析是否可以得到结果正确的结果。

如果不可以的话,排查确认下数据问题,如果可以的话建议您对标桌面跑通的各项网络环境参数来配置。

希望可以帮助到您。
9,723EXP 2023年03月29日
...