HowTo:  Determine how much of a route is traversed along edges with specific attribute values

相关信息
Article ID: 40231
Software:
ArcGIS - ArcEditor 9.3.1, 10
ArcGIS - ArcInfo 9.3.1, 10
ArcGIS - ArcView 9.3.1, 10
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7

问题描述
Instructions provided describe how to determine how much of a route is traversed along edges with specific attribute values.

Cost accumulation can be used to extract cost values for edges that exhibit specific attribute values. It can be used to answer these types of questions:

• How much distance of the route is traversed on two-lane roads? Highways?

• How much time is spent on an interstate? Local roads?
已邀请:

易智瑞技术支持

赞同来自:

解决方案
Provided that the desired information exists as attribute values, Network Analyst can calculate accumulation values for them based on cost. The workflow is to create attributes, assign evaluators, and set accumulation.


  1. Go the Network Dataset Properties > Attributes tab.
  2. Click Add and create a new cost attribute with a name that reflects the type of accumulation desired.
  3. Click Evaluators and set the type to Field for both directions. Then click the Evaluator Properties button on the right to open the Field Evaluators window.
  4. Enter an If statement that calculates the Time or Distance value if certain conditions are met. In the example, as long as the road has an ACC type of 1 (interstates) then length of time or distance to traverse is calculated. Otherwise, nothing is calculated (0). The length of time or distance to traverse may already be in field format in the table, or it can be calculated on the fly as in the example: Time-based: If [ACC] = "1" Then x = ([Shape_Length]/5280) / [SPEED])Else x = 0End If Distance-based: If [ACC] = "1" Then x = [Shape_Length]/5280Else x = 0End If
  5. Copy the Pre-Logic formula and click OK. Click evaluator properties for the other direction and paste the Pre-Logic and value formula here. Click OK and OK in the Network Dataset Properties dialog.
  6. Rebuild the network (right-click the Network Dataset in ArcCatalog > Build or the Build Network Dataset button on the Network Analyst toolbar).
  7. Add the network dataset to a map and create a new route using the Network Analyst toolbar. Prior to solving the route, go to the route Properties > Accumulation tab and check the box next to the new attributes that were created.
  8. Once the route is solved, it has the accumulation values for the new attributes. Additionally, if the routes are exported to a feature class/shapefile, it also includes the accumulation values.


其它相关参考
  1. Display hours, minutes and seconds in the Network Analyst Directions windowIf a Network Dataset has been set up for Directions and has Minutes set up for a Cost, then there is the option to display hours, minutes and seconds in the Directions window. The default is only hours and minutes.
  2. Essential Network Analyst vocabulary
  3. Understanding the network attribute
  4. Route analysis
  5. Feature Class Codes (FCC)


创建及修改时间
Created: 5/10/2012

Last Modified: 6/11/2012
原文链接
http://support.esri.com/en/kno ... 40231

要回复问题请先登录注册