Object model of Networks

1744
2
12-03-2010 05:05 AM
HansSkov-Petersen
New Contributor
Is there a doc that describes the object model of networks, build in arcGIS (10 and/or 9)? I mean, somewhere from which start and end nodes of edges and a list of connected edges of nodes can be inspected.

Code examples would be good 🙂
Tags (2)
0 Kudos
2 Replies
JaySandhu
Esri Regular Contributor
The Network dataset object model is described as part of the geodatabse OMDs. You can access that here:

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Overview/002500000n8v000...

Then expand the ESRI.ArcGIS.Geodatabase and then click on the Geodatabase Namespace Object Model Diagram. This is a multi-page PDF. Page 14 is the network dataset OMD.

To query the network take a look at the following method:
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/QueryEdge_Method/0025000...


Jay Sandhu
0 Kudos
PatrickStevens
Esri Contributor
Along with the links Jay gave you, there are a couple of other places you can look.

Here is a How-To document with C# code to help traverse a network:

How to programmatically traverse a street network

The important things to note are how to handle turns, how to set up your attributes (and attribute adjustments), and how to move from edge to connected edge using INetworkForwardStarEx (using INetworkForwardStarEx.QueryAdjacencies).


There is also a C++ sample on creating a custom solver, if that is what you are looking for:

C++ Custom Solver
0 Kudos