C# Class ServiceAreaSolver.frmServiceAreaSolver

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: Esri/arcobjects-sdk-community-samples Class Usage Examples

Méthodes publiques

Свойство Type Description
cbCostAttribute System.Windows.Forms.ComboBox

Méthodes publiques

Méthode Description
GetDENetworkDataset ( INetworkDataset networkDataset ) : IDENetworkDataset

Geodatabase function: get network dataset

GetGPMessagesAsString ( IGPMessages gpMessages ) : string
OpenNetworkDataset ( IWorkspace workspace, string featureDatasetName, string strNDSName ) : INetworkDataset

Geodatabase function: open network dataset

OpenWorkspace ( string strGDBName ) : IWorkspace

Geodatabase function: open work space

RefreshMapDisplay ( ) : void
frmServiceAreaSolver ( ) : System

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
AddNetworkAnalysisLayerToMap ( ) : void

Create a layer from the context and add it to the map

AddNetworkDatasetLayerToMap ( INetworkDataset networkDataset ) : void

Create a layer for the network dataset and add it to the map

ConfigureGenericSolverSettings ( ) : void

Update settings that apply to all solvers

ConfigureSettingsSpecificToServiceAreaSolver ( ) : void

Update settings that only apply to the Service Area

ConfigureSolverSettings ( ) : void

Prepare the solver

CreateSolverContext ( INetworkDataset networkDataset ) : void

Create NASolver and NAContext

DisplayOutput ( ) : void

Display analysis results in the list box

Initialize ( ) : void

Set up the default values on the form

InitializeComponent ( ) : void

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

LoadCostAttributes ( INetworkDataset networkDataset ) : void
LoadLocations ( IFeatureWorkspace featureWorkspace ) : bool
ParseBreaks ( string p ) : IDoubleArray

Prepare the text string for breaks

UpdateContextAfterChangingSettings ( ) : void

When the solver has been update, the context must be updated as well

btnLoadMap_Click ( object sender, EventArgs e ) : void

Open the network dataset and set up the map

btnSolve_Click ( object sender, EventArgs e ) : void

Call the Service Area solver and display the results

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GetDENetworkDataset() public méthode

Geodatabase function: get network dataset
public GetDENetworkDataset ( INetworkDataset networkDataset ) : IDENetworkDataset
networkDataset INetworkDataset Input network dataset
Résultat IDENetworkDataset

GetGPMessagesAsString() public méthode

public GetGPMessagesAsString ( IGPMessages gpMessages ) : string
gpMessages IGPMessages GPMessages container
Résultat string

OpenNetworkDataset() public méthode

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
Résultat INetworkDataset

OpenWorkspace() public méthode

Geodatabase function: open work space
public OpenWorkspace ( string strGDBName ) : IWorkspace
strGDBName string Input file name
Résultat IWorkspace

RefreshMapDisplay() public méthode

public RefreshMapDisplay ( ) : void
Résultat void

frmServiceAreaSolver() public méthode

Initialize the solver by calling the ArcGIS Network Analyst extension functions.
public frmServiceAreaSolver ( ) : System
Résultat System

Property Details

cbCostAttribute public_oe property

public System.Windows.Forms.ComboBox cbCostAttribute
Résultat System.Windows.Forms.ComboBox