HowTo: Create Network Analyst attribute restrictions using Python
【相关信息】
Article ID: 41663
Software:
ArcGIS for Desktop Advanced 10.1, 10.2
ArcGIS for Desktop Standard 10.1, 10.2
ArcGIS for Desktop Basic 10.1, 10.2
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7, Windows 8, Server 2012, Server 2008 R2
【问题描述】
In many cases when using Network Analyst it may be desirable to restrict use of certain edges of the network. For example, only roads that can be walked along or only roads that allow delivery vehicles should be traversed. At ArcMap 10.1, Python can be used to create attribute restrictions. Instructions provided in this article describe the steps to create field-based attribute restrictions using Python scripting.
Article ID: 41663
Software:
ArcGIS for Desktop Advanced 10.1, 10.2
ArcGIS for Desktop Standard 10.1, 10.2
ArcGIS for Desktop Basic 10.1, 10.2
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7, Windows 8, Server 2012, Server 2008 R2
【问题描述】
In many cases when using Network Analyst it may be desirable to restrict use of certain edges of the network. For example, only roads that can be walked along or only roads that allow delivery vehicles should be traversed. At ArcMap 10.1, Python can be used to create attribute restrictions. Instructions provided in this article describe the steps to create field-based attribute restrictions using Python scripting.
1 个回复
易智瑞技术支持
赞同来自:
The following sample workflow shows how to create a restriction where two fields are evaluated. The restriction is created for edges that are both pedestrian friendly and not a highway. This is just a sample and the code can be configured to work on one field or more than two. The key is having fields in place from which to evaluate.
In this case the network dataset contains two fields with Boolean values. One field for pedestrian traffic and another describing an edge as a highway. In order for the edge to be traversed, it must be both pedestrian and not a highway.
【其它相关参考】
【创建及修改时间】
Created: 10/8/2013
Last Modified: 12/6/2013
【原文链接】
http://support.esri.com/en/kno ... 41663
要回复问题请先登录或注册