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 AnalystPlatforms: WindowsMinimum ArcGIS Release: 9.1 |
How to use:
- Either run the provided executable or use Visual Studio VB6 in order to run the application
- In the application, click on Find OD Cost Matrix to perform the analysis
- The ordered list of facilities is displayed
- You can change the impedance attribute, use oneway restriction and use hierarchy
- You can change the Target Destination Count and the CutOff value
| ODCostMatrixSolver.vbp |
Visual Basic project file. |
| frmODCostMatrixSolver.frm
|
Visual Basic form file. |
| ODCostMatrixSolver.exe |
The compiled project. |
Download the VB6 files
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