一个ArcGIS网络分析的最短路径例子||A Network Analyst Shortest Route of ArcGIS[转]

这是我自己利用 ArcMap,ArcCatalog 做的最短路径查询实现的步骤说明。

例子是以上海地铁线路换乘的。

可以实现任意两点之间的地铁路线查询。

主要内容: ArcMap , ArcCatalog , Network Analyst 模块最短路径查询。

原本是英文的,为了不让以为是抄袭别人的,我只是部分修改为中文了。

// 欢迎批评指正,email :yuguizhcc@gmail.com

 

1 在 Arcmap 中画地铁线路图(矢量图)
两个层:线路层和站点层

线路层中注意不同线路交叉处,在可以换乘的位置, vertex 需要 snapping( 捕捉 ) !

2 Creating a geodatabase network dataset
Firstly, Create a file geodatabase( in Arc catalog);

Secondly, create a new feature dataset;

Thirdly, Import Feature Class, showed as :


 

Chose Any Vertex can get a junction between different route.

It will be different, if Endpoint has been chosed.

3 Finding the best route using a network dataset

1)create new network dataset
在 Arccatalog 中右击线路层, new network dataset

生成 Line1_ND.nd , Line1_ND_Jucntions 文件.

生成 Network Analyst 时候注意选择网络生成的依据,路径的 ID or time ?特别是对于需要换乘的情况,尤其要注意以路径的 ID 为优先,对于步行或者不考虑换乘耽误的时间,则应该以路程的时间消耗为第一选择。

Field is  ID :


2 ) Add data
在 Arcmap 的中,右击 add data ,讲 Line1_ND.nd 文件添加。

3 ) create New Route

The Network Analyst Window now contains empty lists of Stops , Routes and Barriers categories. Additionally, the table of contents contains a new Route Analysis Layer.

4 ) Adding  stops
网络工具栏


点击显示网络工具栏中 Network Analyst Window

将 Stops 选中

在地图中标记任意两个位置

5 )产生路径
点击 sovle按钮

6) 其他例子

The Shortest Route marked as green Line .

 

参考资料推荐:

轻松入门教程 -ArcGIS Desktop.pdf

GIS 软件应用实验指导书 2006 修定 .pdf

Finding_Your_Way_with_ArcGIS_Network_Analyst.pdf

Network_Analyst_Tutorial.pdf

韩鹏《地理信息系统开发―― ArcObjects 方法》

原文地址:https://www.cnblogs.com/frogbag/p/1574041.html