DatasetVector networkDataset = (DatasetVector) m_Workspace.getDatasources().get("road").getDatasets().get("RoadNetwork");
m_Navigation2 = m_MapControl.getNavigation2(); // 获取行业导航控件,只能通过此方法初始化m_Navigation2
m_Navigation2.setPathVisible(true); // 设置分析所得路径可见
m_Navigation2.setNetworkDataset(networkDataset); // 设置网络数据集
m_Navigation2.loadModel(SDCARD + "/Scj/GeometryInfo/南京-1/NetworkModel-1.snm"); // 加载网络模型
m_Navigation2.setNodeInterval(999.00); // 设置分析点容量
m_Navigation2.setStartPoint(startPoint.getX(), startPoint.getY()); // 设置起点,为了测试,固定
m_Navigation2.setDestinationPoint(destPoint.getX(), destPoint.getY()); // 设置终点
isFindPath = m_Navigation2.routeAnalyst(); // 路径分析