+ Reply to Thread
Results 1 to 4 of 4

Thread: Accessing the Logical Network - Retrieve From-To EdgesID from polyline shapefile

  1. #1
    Theocharis Ballis
    Join Date
    May 2012
    Posts
    4
    Points
    0
    Answers Provided
    0


    0

    Default Accessing the Logical Network - Retrieve From-To EdgesID from polyline shapefile

    Hello

    My project involves finding the shortest path within a polyline shapefile, without using the network analyst (not an owner of a licence for the specific product).
    Eventually i need the ID's of the nodes(edges) that "create" this network although i cannot find where this information is stored.
    After some research I believe the answer lays somewhere the INetwork interface but my skills at ArcObjects with VBA are still novice.

    I'd be glad if someone could help me further.

  2. #2
    Curtis Price

    Join Date
    Oct 2009
    Posts
    1,798
    Points
    874
    Answers Provided
    127


    0

    Default Re: Accessing the Logical Network - Retrieve From-To EdgesID from polyline shapefile

    Quote Originally Posted by TheoBallis View Post
    My project involves finding the shortest path within a polyline shapefile, without using the network analyst (not an owner of a licence for the specific product).
    There is a great deal of network functionality that does not require the Network Analyst extension. You may want to take a look at:

    Arc 10 help: What are geometric networks?
    Last edited by curtvprice; 05-10-2012 at 06:56 PM.

  3. #3
    Theocharis Ballis
    Join Date
    May 2012
    Posts
    4
    Points
    0
    Answers Provided
    0


    0

    Default Re: Accessing the Logical Network - Retrieve From-To EdgesID from polyline shapefile

    The algorithm for finding the shortest path is up and running. My only problem is how to access the "Logical network" in order to get the ID's of the nodes at the edges of each link.

  4. #4
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Accessing the Logical Network - Retrieve From-To EdgesID from polyline shapefile

    From result of trace solver you can use EIDHelperClass for get feature

    Code:
                IEIDHelper eidHelper = new EIDHelperClass();
                eidHelper.GeometricNetwork = geometricNetwork;
                eidHelper.ReturnGeometries = true;
                eidHelper.ReturnFeatures = true;
    
                IEnumEIDInfo enumEIDinfo = eidHelper.CreateEnumEIDInfo(eids);
                enumEIDinfo.Reset();
                IEIDInfo eidInfo = enumEIDinfo.Next();
                while (eidInfo != null)
                {
                    IFeatureClass featureClass = eidInfo.Feature.Class as IFeatureClass;
                    IFeature feature = eidInfo.Feature;
                    int featureClassID = featureClass.FeatureClassID;
                    ...                
                    eidInfo = enumEIDinfo.Next();
                }
    you can also use IEIDHelper::AddField() to get attribute for field added and IEIDHelper::get_DisplayEnvelope() for get feature valid cointained in a envelope
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts