Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a topology graph of a polygon feature and I want to find the individual FIDS of the lines of the polygon. I want to construct an adjacency matrix to create the shortest path. How can I do this with ArcObjects programming with VBA?

share|improve this question

closed as off-topic by PolyGeo Dec 22 '15 at 1:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

What do you mean by "path" ... is it a sequence of polygons? – Kirk Kuykendall Dec 3 '12 at 4:49

The individual lines will now have their own feature ids (they are not features- per se), but you can iterate over the individual Topology edges using IEnumTopologyEdge (there is also a sample available).

You can find more information about how to work with Topology Edges here:

share|improve this answer