Makes an origin–destination (od) cost matrix network analysis layer and sets its navigation properties.
An OD Cost Matrix layer can be made on a network currently added to the ArcMap Table of Contents or on a network dataset on disk.
Hierarchy options can only be set if the input analysis network has a hierarchy attribute.
The following environment settings affect this tool: workspace.
|OInput analysis network (Required)||
The network dataset on which the OD cost matrix will be performed.
|Network Dataset Layer|
|Output layer name (Required)||
Name of the OD cost matrix network analysis layer being created.
|Impedance attribute (Required)||
The cost attribute to be used as impedance in the analysis.
|Default cutoff (Optional)||
Default impedance value at which to cut off searching for facilities for a given incident. The default can be overridden by the value of the <impedance_attribute> for the facility or incident. The minimum of the specified cutoffs for a given facility–incident pair is used to constrain the analysis.
|Default number of destinations to find (Optional)||
Default number of closest facilities to find per incident. The default can be overridden by the value of the TargetFacilityCount property of the incidents.
List of cost attributes to be accumulated during analysis.
|U-turn policy (Optional)||
Specifies optional U-turn restrictions.
List of restriction attributes to be honored during analysis.
|Use Hierarchy in analysis (Optional)||
Specifies whether or not to use a hierarchy in the analysis.
|Hierarchy rank settings (Optional)||
Sets the hierarchy attribute values at which the navigation algorithm should form the highest, middle, and lowest ranks.
|Network Analyst Hierarchy Settings|
|Output path shape (Optional)||
Specifies the output shape type.
import arcgisscripting gp = arcgisscripting.create() gp.MakeODCostMatrixLayer("NewYorkNDS ODMatrix Minutes 30 3 Meters;Dollars ALLOW_DEAD_ENDS_ONLY Oneway;NoHazmat NO_HIERARCHY # NO_SHAPE