<?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: Closest Facility/Delete Identical Tool Help in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218102#M7526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I believe I have found an, albeit lengthy, workaround. I created a unique ID for each of the paths by concatenating the x midpoint, y midpoint, and z start point of each route (line). I then took the table out of ArcMap and into Excel and reordered the OIDs. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're using 10.0, the Sort tool will create a new feature class with new OIDs in the sorted order. I think that may make this task a quick ModelBuilder exercise. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to set up your own custom unique identifier on a sorted table Calculate Field tool can be used to do this too. Note I mean a table sorted with the Sort_management tool, not just interactively sorted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression (PYTHON):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;uid(1)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code Block: &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;i = None def uid(start): &amp;nbsp; global i &amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 1 &amp;nbsp; except: &amp;nbsp;&amp;nbsp;&amp;nbsp; i = start &amp;nbsp; return i&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2012 22:56:50 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-04-11T22:56:50Z</dc:date>
    <item>
      <title>Closest Facility/Delete Identical Tool Help</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218100#M7524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a bit of a time figuring out a work around for a problem I have. Essentially, I ran a Closest Facility operation on a set of about 200 points. Each point is an entrance to a building, and the underlying network is walking paths. I have named each of my facilities and incidents based on building number, and ran the operation so that each building was a facility as well as an incident, producing routes to and from each building.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am looking for is for any given path, (1-2, 1-3, etc.), I would like the shortest route (in time). In the Route output, there are routes for each entrance. For example if building 1 has four entrances, there will be four routes from building 1 to building 2. I only want the shortest (time-wise) for each route. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is where I thought I would be able to use the Delete Identical tool. I advanced sorted the table, first based on the name of the route, then on the travel time. After this sort, the first unique record for each route name (1-2) had the shortest time. However, Delete Identical appears to delete all but the lowest Object_ID. This is a problem because as the routes were created and subsequently exported, they did not go in the order that I want now, so the lowest Object_ID is not always the shortest time for a specific building to building route. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions/comments would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 21:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218100#M7524</guid>
      <dc:creator>EricStipe</dc:creator>
      <dc:date>2012-04-10T21:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Closest Facility/Delete Identical Tool Help</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218101#M7525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe I have found an, albeit lengthy, workaround. I created a unique ID for each of the paths by concatenating the x midpoint, y midpoint, and z start point of each route (line). I then took the table out of ArcMap and into Excel and reordered the OIDs. I took the table back into ArcMap, and exported it as a file geodatabase table. The OID were in the "correct" order, ascending based on my sorting, and I was able to Delete Identical from there. After this i used the unique ID I created in the route feature class to rejoin, and remove the null records (the ones that weren't the shortest for each building).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still playing around with this to make sure it actually did everything proper, but if someone sees a major flaw in this method, or has an idea for a quicker way, I'm open for suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 19:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218101#M7525</guid>
      <dc:creator>EricStipe</dc:creator>
      <dc:date>2012-04-11T19:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Closest Facility/Delete Identical Tool Help</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218102#M7526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I believe I have found an, albeit lengthy, workaround. I created a unique ID for each of the paths by concatenating the x midpoint, y midpoint, and z start point of each route (line). I then took the table out of ArcMap and into Excel and reordered the OIDs. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're using 10.0, the Sort tool will create a new feature class with new OIDs in the sorted order. I think that may make this task a quick ModelBuilder exercise. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to set up your own custom unique identifier on a sorted table Calculate Field tool can be used to do this too. Note I mean a table sorted with the Sort_management tool, not just interactively sorted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression (PYTHON):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;uid(1)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code Block: &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;i = None def uid(start): &amp;nbsp; global i &amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 1 &amp;nbsp; except: &amp;nbsp;&amp;nbsp;&amp;nbsp; i = start &amp;nbsp; return i&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 22:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218102#M7526</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-04-11T22:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Closest Facility/Delete Identical Tool Help</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218103#M7527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is exactly what I was looking for, thank you. It is much quicker and leaves much less room for error. I appreciate your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 16:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/closest-facility-delete-identical-tool-help/m-p/218103#M7527</guid>
      <dc:creator>EricStipe</dc:creator>
      <dc:date>2012-04-12T16:55:28Z</dc:date>
    </item>
  </channel>
</rss>

