C# Класс OD_Cost_Matrix_CSharp.frmODCostMatrixSolver

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateSolverContext ( INetworkDataset networkDataset ) : INAContext

Create NASolver and NAContext

DisplayOutput ( ) : void

Display analysis results in the list box

GetDENetworkDataset ( INetworkDataset networkDataset ) : IDENetworkDataset

Geodatabase function: get network dataset

GetGPMessagesAsString ( IGPMessages gpMessages ) : string
LoadNANetworkLocations ( string strNAClassName, IFeatureClass inputFC, double maxSnapTolerance ) : void

Set solver settings

OpenNetworkDataset ( IWorkspace workspace, string featureDatasetName, string strNDSName ) : INetworkDataset

Geodatabase function: open network dataset

OpenWorkspace ( string strGDBName ) : IWorkspace

Geodatabase function: open work space

SetSolverSettings ( ) : void

Set solver settings

frmODCostMatrixSolver ( ) : System

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
Initialize ( ) : void

Initialize the solver by calling the ArcGIS Network Analyst extension functions.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsNumeric ( string str ) : bool

Check whether a string represents a double value.

cmdSolve_Click ( object sender, EventArgs e ) : void

Call the OD cost matrix solver and display the results

Описание методов

CreateSolverContext() публичный Метод

Create NASolver and NAContext
public CreateSolverContext ( INetworkDataset networkDataset ) : INAContext
networkDataset INetworkDataset Input network dataset
Результат INAContext

DisplayOutput() публичный Метод

Display analysis results in the list box
public DisplayOutput ( ) : void
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetDENetworkDataset() публичный Метод

Geodatabase function: get network dataset
public GetDENetworkDataset ( INetworkDataset networkDataset ) : IDENetworkDataset
networkDataset INetworkDataset Input network dataset
Результат IDENetworkDataset

GetGPMessagesAsString() публичный Метод

public GetGPMessagesAsString ( IGPMessages gpMessages ) : string
gpMessages IGPMessages GPMessages container
Результат string

LoadNANetworkLocations() публичный Метод

Set solver settings
public LoadNANetworkLocations ( string strNAClassName, IFeatureClass inputFC, double maxSnapTolerance ) : void
strNAClassName string NAClass name
inputFC IFeatureClass Input feature class
maxSnapTolerance double Max snap tolerance
Результат void

OpenNetworkDataset() публичный Метод

Geodatabase function: open network dataset
public OpenNetworkDataset ( IWorkspace workspace, string featureDatasetName, string strNDSName ) : INetworkDataset
workspace IWorkspace Input workspace
featureDatasetName string
strNDSName string Input network dataset name
Результат INetworkDataset

OpenWorkspace() публичный Метод

Geodatabase function: open work space
public OpenWorkspace ( string strGDBName ) : IWorkspace
strGDBName string Input file name
Результат IWorkspace

SetSolverSettings() публичный Метод

Set solver settings
public SetSolverSettings ( ) : void
Результат void

frmODCostMatrixSolver() публичный Метод

public frmODCostMatrixSolver ( ) : System
Результат System