使用产品:imobile9D 操作系统:win7 x64
问题详细描述:怎么才能使路径分析的结果没有节点;
Dataset dataset=m_workspace.getDatasources().get(0).getDatasets().get(5);
DatasetVector datasetVector=(DatasetVector)dataset;
transSetting.setNetworkDataset(datasetVector);
transSetting.setEdgeIDField("SmEdgeID");
transSetting.setNodeIDField("SmNodeID");
transSetting.setFNodeIDField("SmFNode");
transSetting.setTNodeIDField("SmTNode");
transSetting.setTolerance(89);
//经过某一弧段消耗的资源
WeightFieldInfos weightFieldInfos = new WeightFieldInfos();
WeightFieldInfo weightFieldInfo = new WeightFieldInfo();
weightFieldInfo.setFTWeightField("SmLength");
weightFieldInfo.setTFWeightField("SmLength");
weightFieldInfos.add(weightFieldInfo);
transSetting.setWeightFieldInfos(weightFieldInfos);
TransportationAnalyst analyst=new TransportationAnalyst();
analyst.setAnalystSetting(transSetting);
analyst.load();
TransportationAnalystParameter parameter=new TransportationAnalystParameter();
parameter.setPoints(point2DsAnalyse);
parameter.setNodesReturn(false);
parameter.setEdgesReturn(true);
parameter.setPathGuidesReturn(true);
parameter.setRoutesReturn(true);
TransportationAnalystResult result=analyst.findPath(parameter, true);
GeoLineM[] routes=result.getRoutes();