构建三维网络数据集后进行最佳路径参数设置报错

0 投票

数据在桌面是可以进行正常分析的。在iObjects中遇到问题,代码如下:


            m_TransportationAnalyst = new TransportationAnalyst3D();
            TransportationAnalystSetting3D setting = new TransportationAnalystSetting3D
            {
                NetworkDataset = SelectedLayerDataset()
            };
            if (setting.NetworkDataset == null)
            {
                Sunny.UI.UIMessageTip.ShowWarning("请先选择网络一个数据");
                return;
            }

            setting.EdgeIDField = "SmID";
            setting.NodeIDField = "SSNODEID";
            setting.EdgeNameField = "SmID";
            setting.Tolerance = 100;

            WeightFieldInfos3D weightFieldInfos = new WeightFieldInfos3D();
            WeightFieldInfo3D weightFieldInfo = new WeightFieldInfo3D
            {
                FTWeightField = "smLength",
                TFWeightField = "smLength",
                Name = "length"
            };
            weightFieldInfos.Add(weightFieldInfo);
            setting.WeightFieldInfos = weightFieldInfos;
            setting.FNodeIDField = "SSFNODE";
            setting.TNodeIDField = "SSTNODE";

            m_TransportationAnalyst.AnalystSetting = setting;
            m_TransportationAnalyst.Load();

请问这是什么原因,是哪个参数没有设置正确?

5月 19 分类:  39次浏览 | 用户: xyz绿洲 (2 分)

1个回答

0 投票
你将你的数据发过来这边看一下,可以发2826793165@qq.com这个邮箱
5月 20 用户: 程逸诗 名扬四海 (4,283 分)
...