OD Cost Matrix Solver



Description:

This sample is an application that shows how to programmatically perform an OD Cost Matrix analysis. You will learn how to load origin and destination locations from a feature class, set solver parameters, execute the analysis, and get back the output results.
Products:
ArcView: VB6
Engine: VB6

Extension: Network Analyst

Platforms: Windows

Minimum ArcGIS Release: 9.1

How to use:
  1. Either run the provided executable or use Visual Studio VB6 in order to run the application
  2. In the application, click on Find OD Cost Matrix to perform the analysis
  3. The ordered list of facilities is displayed
  4. You can change the impedance attribute, use oneway restriction and use hierarchy
  5. You can change the Target Destination Count and the CutOff value

Download the VB6 files
ODCostMatrixSolver.vbp Visual Basic project file.
frmODCostMatrixSolver.frm Visual Basic form file.
ODCostMatrixSolver.exe The compiled project.

Download the files for all languages



Key Libraries: NetworkAnalyst
Key CoClasses:NAODCostMatrixSolver, NAClassFieldMap, NAClassLoader, NAWindow, NALayer, NAContext, NAClass
Key Interfaces: INASolver, INAODCostMatrixSolver, INASolverSettings, INAClassFieldMap, INAClassLoader, INALayer, INAContext, INAContextEdit
Key Members:INASolver::CreateContext, INASolver::CreateLayer, INASolver::Solve, INAContext::NAClasses, INAContext::Solver, INAContextEdit::Bind, INAClassLoader::Load