创建网络数据集(5)
- 格式:docx
- 大小:1.91 MB
- 文档页数:37
∙ArcGIS Network Analyst 教程- 有助于您了解ArcGIS Network Analyst 的优秀入门教程∙迁移到ArcGIS Network Analyst - 提供各种有关将网络数据从旧版ArcGIS 迁移到当前版本的帮助主题。
∙使用ArcCatalog 根据存储在地理数据库中的要素类来创建和构建一个网络数据集。
∙为该网络数据集定义连通性规则和网络属性。
∙在ArcMap 中,使用Network Analyst 工具条执行各种网络分析。
∙学习如何使用Network Analyst 地理处理工具创建用于自动分析的模型。
要使用本教程,您需要安装包含Network Analyst 扩展模块的ArcGIS,还需要将教程数据安装在系统的本地或共享网络驱动器中。
教程数据如果未能在默认安装路径(C:\ArcGIS\ArcTutor\Network Analyst\Tutorial) 中找到教程数据,请向系统管理员询问教程数据的正确路径。
在本教程中1.单击开始>所有程序> ArcGIS > ArcCatalog 10启动ArcCatalog。
2.启用“网络分析”扩展模块。
a.单击自定义>扩展模块。
将打开扩展模块对话框。
b.选中网络分析。
c.单击关闭。
3.On the Standard toolbar, click the Connect To Folder button .The Connect to Folder dialog box opens.4.Navigate to the folder with the ArcGIS Network Analyst tutorial data.The default location for the tutorial data is C:\ArcGIS\ArcTutor\Network Analyst\Tutorial5.单击确定。
A shortcut to the folder is added to the Catalog Tree under FolderConnections.6.在目录树中,展开...\ArcTutor\Network Analyst\Tutorial > Exercise01 >SanFrancisco.gdb。
7.单击交通要素数据集。
要素数据集包含的要素类将列于ArcCatalog 的内容选项卡上。
8.右键单击交通要素数据集并单击新建>网络数据集。
9.The New Network Dataset wizard opens.注意:要在地理数据库中打开新建网络数据集向导,右键单击包含源要素类(如街道)的要素数据集并选择新建>网络数据集。
对于基于shapefile 的网络数据集,右键单击Streets shapefile 本身,而不是包含shapefile 的工作空间,并选择新建>网络数据集。
产生这种差别的原因是地理数据库网络允许您使用要素数据集中存储的多个源来创建多方式网络,而基于shapefile 的网络数据集只能够处理单个源要素类。
10.输入网络数据集的名称Streets_ND。
11.单击下一步。
12.选中街道要素类并将其作为网络数据集的源。
13.单击下一步。
14.Click Yes to model turns in the network.15.选中<通用转弯>可添加默认转弯罚金,而选中RestrictedTurns可将它选为转弯要素源。
16.单击下一步。
17.单击连通性。
将打开“连通性”对话框。
可在此处为该网络设置连通性模型。
对于此街道要素类,所有街道在端点处相互连接。
18.确保街道的连通性策略已设置为端点。
19.Click OK to return to the New Network Dataset wizard.20.单击下一步。
21.此数据集带高程字段,因此请确保选择使用高程字段选项。
Elevation settings in a network dataset further defines connectivity. To understand why, assume two edges have coincident endpoints in X and Y space but have different elevations (one endpoint is higher than the other). Furthermore, assume their connectivity policy is set to Endpoint.If elevation is ignored, the edges connect. However, if elevation isconsidered, they won't connect.There are two ways to model elevations: using true elevation valuesfrom geometry or using logical elevation values from elevation fields.街道要素类具有整数形式的逻辑高程值,存储在F_ELEV 和T_ELEV 字段中。
例如,如果两个重合端点的字段高程值为1,则边将连接。
但是,如果一个端点的值为1,另一个重合端点的值为0(零),边将不会连接。
ArcGIS Network Analyst 会识别此数据集中的字段名称并自动映射它们,如下图所示。
(只有整型字段可以用作高程字段。
)22.单击下一步。
可以使用此向导页面配置历史流量数据。
流量数据能够使您根据一周中的某天某时找到最快的路径。
例如,周三上午8:30(高峰时段)从 A 到 B 的最快路径可能与周日下午1:00 这两点间的最快路径不同。
尽管路径相同,但达到目的地花费的时间却可能有所不同。
了解有关历史流量数据的详细信息旧金山地理数据库包含两个存储历史流量数据的表:DailyProfiles 和Streets_DailyProfiles。
在设计表的方案时,应该使Network Analyst 能识别每个表的角色并能自动配置历史流量。
23.单击下一步。
将显示设置网络属性的页面。
Network attributes are properties of the network that control navigation. Common examples are cost attributes that function as impedances over the network and restriction attributes that prohibit traversal in both directions or one direction, like one-way roads.ArcGIS Network Analyst analyzes the source feature class (or classes) and looks for common fields like Meters, Minutes (FT_Minutes and TF_Minutes, one for each direction), and Oneway. If it finds these fields, it automatically creates the corresponding network attributes and assigns the respective fields to them. (This can be viewed by clicking Evaluators.)Network Analyst 将自动为该旧金山数据设置八个属性:HierarchyMultiNet、Meters、Minutes、Oneway、RoadClass、TravelTime、WeekdayFallbackTravelTime 和WeekendFallbackTravelTime。
它还会为这些属性指定赋值器。
24.单击Meters行将其选中,然后单击赋值器检查网络属性的值是如何确定的。
将打开赋值器对话框。
源值选项卡上的表会列出源要素类。
线性源要素类(将成为网络数据集中的边元素)会列出两次;一次针对“自-至”方向,一次针对“至-自”方向。
(这些方向是指相对于源线要素的数字化方向。
)类型列将显示用于计算网络属性值的赋值器的类型。
值列包含赋值器计算属性值所需的信息。
25.在属性下拉列表中,每次单击一种属性类型,检查赋值器的类型和源要素类的值。
26.Click OK to return to the New Network Dataset wizard.在以下步骤中,您将添加一个新属性来限制在创建自RestrictedTurns 要素类的转弯元素上方移动。
27.单击添加。
将打开添加新属性对话框。
28.在名称字段中键入RestrictedTurns。
29.对于使用类型,请选择限制。
注意:已选中默认情况下使用。
此限制将在创建新的网络分析图层时默认使用。
如果想在执行分析时忽略限制,可以在设置分析时禁用它。
30.单击确定。
新的属性RestrictedTurns 将添加到属性列表。
中间带 D 的蓝色圆圈表示该属性在新分析中被默认启用。
31.单击赋值器按源将值指定给新属性。
32.按照这些子步骤,将RestrictedTurns 的赋值器类型设置为常量,值设置为“受限制”。
a.单击属性下拉列表,并选择RestrictedTurns。
b.对于RestrictedTurns行,在类型列下方单击并从下拉列表中选择常量。
c.单击值列并选择受限制。
结果应该类似于下图:街道源的赋值器为空,因此当使用此限制时这些街道源仍然是可穿过的。
33.Click OK to return to the New Network Dataset wizard.34.右键单击HierarchyMultiNet 行,然后选择默认情况下使用。
蓝色符号将从属性中移除。
这意味着使用此网络数据集创建分析图层时不会默认使用等级。
35.单击下一步。
36.Click Yes to set up directions.37.Click Directions.The Network Directions Properties dialog box opens.Now you will specify the fields used to report directions for network analysis results.38.在常规选项卡上,确保主要行的名称字段将自动映射到NAME。