<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Overlapping routes in Closest Feauture in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468904#M4481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you solve the closest facility (or route), the resulting output contains one line feature per route and do not contain the individual edges that made up that route. However, that information is available in memory in form of a traversal result and can be accessed to turned into line features. Once you have that, you can simply summerize on the source object id and find out how many times each edge has been traversed. You can use the following resource to add the traversal result right after you solve the CF to the ArcMap TOC:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=C8A2186E-1422-2418-3494-48812C8DB8DE"&gt;http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=C8A2186E-1422-2418-3494-48812C8DB8DE&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jan 2011 14:49:22 GMT</pubDate>
    <dc:creator>JaySandhu</dc:creator>
    <dc:date>2011-01-07T14:49:22Z</dc:date>
    <item>
      <title>Overlapping routes in Closest Feauture</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468903#M4480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody. My first post in forum. I am a student network engineering and my diploma thesis needs arcgis. let me explain you in a few lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some building blocks (~400 blocks) [polygons] and street segments (~1000) [polylines] around them. I take random points (~7000) in the blocks and with Network Analyst and Closest Feauture I create new network dataset and take the shortest paths from a central point (Facility) to the 7000 points (Incidents). As a result 7000 routes [polylineM] are generated. My question is how can I find how many routes cross every street segment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I' ve done: I make dissolve for the routes (with no fields and not check the button create multipart feautures) and I get a dissolve_routes [polylineM] shape with mutual street segments (~650 segs) but without counting the routes as I wanted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, later I made Spatial Join the dissolve_routes (buffer of dissolve_routes) with all the routes to take the join_count field. However it never finishes (I left it for a day and no result). I also tried to take the spatial joins of the routes and the dissolve_routes_points (central x/y points of them)&amp;nbsp; but the result was the same. Any ideas..? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One idea was to reduse my elements, but I want to have large regions with points up to ~50.000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be helpfull. Thanks, John.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 20:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468903#M4480</guid>
      <dc:creator>johnpaulou</dc:creator>
      <dc:date>2011-01-05T20:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping routes in Closest Feauture</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468904#M4481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you solve the closest facility (or route), the resulting output contains one line feature per route and do not contain the individual edges that made up that route. However, that information is available in memory in form of a traversal result and can be accessed to turned into line features. Once you have that, you can simply summerize on the source object id and find out how many times each edge has been traversed. You can use the following resource to add the traversal result right after you solve the CF to the ArcMap TOC:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=C8A2186E-1422-2418-3494-48812C8DB8DE"&gt;http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=C8A2186E-1422-2418-3494-48812C8DB8DE&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 14:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468904#M4481</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-01-07T14:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping routes in Closest Feauture</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468905#M4482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. I have arcgis 9.3. I saw that addin can be installed on version 10. Any tip?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jan 2011 23:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468905#M4482</guid>
      <dc:creator>johnpaulou</dc:creator>
      <dc:date>2011-01-08T23:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping routes in Closest Feauture</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468906#M4483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have 9.3, then you can use the following VBA and run it after you solve the Closest Facility. It will add two new feature classes representing the lines and junctions that were traversed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub AddNATraversalResultToArcMap()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pMxDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNetworkAnalystExtension As INetworkAnalystExtension&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNALayer As INALayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pFLayer As IFeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pTraversalResultQuery As INATraversalResultQuery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNATraversalResultEdit As INATraversalResultEdit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pMxDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNetworkAnalystExtension = Application.FindExtensionByName("Network Analyst")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNALayer = pNetworkAnalystExtension.NAWindow.ActiveAnalysis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pTraversalResultQuery = pNALayer.Context.Result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNATraversalResultEdit = pTraversalResultQuery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Infer Geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pNATraversalResultEdit.InferGeometry "", Nothing, New CancelTracker&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Get the Edges and add as a layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pFLayer = New FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pFLayer.FeatureClass = pTraversalResultQuery.FeatureClass(esriNETEdge)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pFLayer.Name = pFLayer.FeatureClass.AliasName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pMxDoc.FocusMap.AddLayer pFLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Get the Junctions and add as a layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pFLayer = New FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pFLayer.FeatureClass = pTraversalResultQuery.FeatureClass(esriNETJunction)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pFLayer.Name = pFLayer.FeatureClass.AliasName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pMxDoc.FocusMap.AddLayer pFLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 14:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468906#M4483</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-01-10T14:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping routes in Closest Feauture</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468907#M4484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After copy / paste your code in Visual Basic Editor and run it I get Edges and Junctions layers but when I open the attributes tables I get no objects. Is there sth on your code I had to change? I am totally newbie at VBA..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 18:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468907#M4484</guid>
      <dc:creator>johnpaulou</dc:creator>
      <dc:date>2011-01-11T18:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping routes in Closest Feauture</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468908#M4485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you solve the closest facility just before running the VBA? i.e. if it is an existing map document or layer that has been solved in a previous ArcMap session then there will be no traversal results still in memory for the VBA to access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 22:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468908#M4485</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-01-11T22:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping routes in Closest Feauture</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468909#M4486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You re right. I had the routes from previous run. thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 10:36:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/overlapping-routes-in-closest-feauture/m-p/468909#M4486</guid>
      <dc:creator>johnpaulou</dc:creator>
      <dc:date>2011-01-12T10:36:49Z</dc:date>
    </item>
  </channel>
</rss>

