HowTo:  Output true route lines from a Location-allocation analysis

相关信息
Article ID: 41564
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: N/A

问题描述
The Location-allocation analysis only has two output options, Straight Line, or None. This workflow takes the straight line output and creates the true route.
已邀请:

EsriSupport

赞同来自:

解决方案
  1. Run the location-allocation analysis of choice ensuring that there is a name field for the demand and facility points.
  2. In the Table of Contents, right-click the lines generated from the location allocation, export them to a feature class, and add the data to the map.
  3. Open the attribute table of the exported lines.
  4. Add a new field called Demand and use the following Python syntax in the field calculator: a. If you used Facility to Demand: !Name!.partition(" - ")[2] b. If you used Demand to Facility: !Name!.partition(" - ")[0]
  5. 5. Add a new field called Facility and use the following Python syntax in the field calculator: a. If you used Facility to Demand: !Name!.partition(" - ")[0] b. If you used Demand to Facility: !Name!.partition(" - ")[2]
  6. Run the Spatial Join tool using the following inputs:
  7. Click the Network Analyst drop-down and select New Route.
  8. In the Network Analyst window, right-click Stops > ‘Load Locations…’.
  9. Select the Demand Points to ‘Load From:’ and populate ‘RouteName’ with the Name field used to load the demand points into the location allocation analysis > OK.
  10. Right-click Stops and ‘Load Locations…’ again.
  11. Select the output of the Spatial Join tool to ‘Load From:’ and for ‘Name’ select the field called Facility and for ‘RouteName’, select the field added called Demand > OK.
  12. Solve the analysis, the routes are now exact.


其它相关参考
  1. Location-allocation analysis
  2. Route analysis


创建及修改时间
Created: 9/5/2013

Last Modified: 5/12/2014
原文链接
http://support.esri.com/en/kno ... 41564

要回复问题请先登录注册