Bug? Centrality not respecting restriction attribute

247 views
Skip to first unread message

Patrick McGrath

unread,
Dec 22, 2014, 3:16:11 PM12/22/14
to urban-netwo...@googlegroups.com
Centrality is not acknowledging restricted edges in my network dataset. The labels in the image below show the Reach values for my input points, and points located on restricted edges have positive Reach values when no travel should be possible from them (Reach should equal zero). Standard Network Analyst tools such as Make Route Layer acknowledge the restrictions and solve accordingly (see green line in image below). I tried several earlier versions of the tool and had the same problem. I have the same problem with Straightness.
 
I wonder if this is related to how MakeODCostMatrixLayer is called within Adjacency_List_Computation.py (line 170). I see that no restriction attribute is passed to it. I tried hard coding in my restriction attribute and the tool failed at step 4 (see 'MY CODE SNIPPET" and "ERROR" below), but it did seem to be acknowledging that some of the points were on restricted edges ("99 out of 1364 input points not recorded in graph"), which did not happen with the unaltered code.
 
As always thank you for your hard work,
Patrick
 
 
ArcGIS version: 10.2.1.3497
UNA version: 1.01 (Sept 2013)
License: Advanced
 
 
 
 
 
MY CODE SNIPPET:
  # Compute OD matrix
  MakeODCostMatrixLayer_na(in_network_dataset=input_network,
      out_network_analysis_layer=od_cost_matrix_layer,
      impedance_attribute=impedance_attribute,
      default_cutoff=str(cutoff_radius),
      accumulate_attribute_name=accumulator_attributes,
      UTurn_policy="ALLOW_UTURNS", restriction_attribute_name="Traversable", hierarchy="NO_HIERARCHY",
      output_path_shape="NO_LINES")
 
 
ERROR:
 
Messages
Executing: Centrality One16th false Baseline_ND true false false false false FID # Length 1320 "On the network" 1 # C:\temp\Test16 Test16 #
Start Time: Mon Dec 22 11:46:56 2014
Running script Centrality...
[started] Copying input buildings
[finished]
[1 started] Computing adjacency list
... [started] Calculating locations on the network
... [finished]
... [started] Computing barrier costs
... [finished]
... [started] Adding destinations to OD cost matrix layer
... [finished]
... [started] Adding barriers to OD cost matrix layer
... [finished]
[1 finished]
[2 started] Building graph from adjacency list
[2 finished]
[3 started] Retrieving necessary node attributes
99 out of 1364 input points not recorded in graph
[3 finished]
[4 started] Running centrality computation
[4 failed]
Not successful
Completed script Centrality...
Succeeded at Mon Dec 22 11:54:51 2014 (Elapsed Time: 7 minutes 55 seconds)
 
Reply all
Reply to author
Forward
0 new messages