<?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 Extracting and merging attribute data from Network Analyst in Modelbuilder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/extracting-and-merging-attribute-data-from-network/m-p/355637#M12337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently using Modelbuilder to build a series of processes which:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;Calculates individual service areas for approximately 11,500 point features across the UK&lt;BR /&gt;&lt;/OL&gt;&lt;OL&gt;&lt;BR /&gt;Performs a spatial join to count the number of client locations within that specific service area&lt;BR /&gt;&lt;/OL&gt;&lt;OL&gt;&lt;BR /&gt;Merges the outputs of those spatial joins together and extracts the attribute data into a .csv file&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;The model that I have built works fine, however I am having issues with optimising performance and am wondering if anyone has advice for me on how to improve the speed and cut out unecessary steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, I know my model is not optimised, as to get my final output I have to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Iterate through each feature point and create a service area which I then pull out the polygon features from using Select Data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Perform the spatial join which generates a seperate polygon feature (I store this using the in_memory option)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Collect the output of each Spatial Join output using Collect Values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Merge the polygons together (into a local folder) and then extract the attribute data into a .csv using Extract Feature to Ascii.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My main issue is with the last process. Firstly I am unable to save this output using in_memory and I am not sure why this is the case, and secondly I am convinced that there must be a way in which I can avoid having to perform the Merge function to join all the results of each spatial join together in a .CSV table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to know therefore is if there there a way to extract the attribute data from each spatial join and merge them into a table without having to go through the process of merging the spatial join polygons together?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ross&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 11:48:17 GMT</pubDate>
    <dc:creator>RossPudney</dc:creator>
    <dc:date>2012-09-18T11:48:17Z</dc:date>
    <item>
      <title>Extracting and merging attribute data from Network Analyst in Modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extracting-and-merging-attribute-data-from-network/m-p/355637#M12337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently using Modelbuilder to build a series of processes which:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;Calculates individual service areas for approximately 11,500 point features across the UK&lt;BR /&gt;&lt;/OL&gt;&lt;OL&gt;&lt;BR /&gt;Performs a spatial join to count the number of client locations within that specific service area&lt;BR /&gt;&lt;/OL&gt;&lt;OL&gt;&lt;BR /&gt;Merges the outputs of those spatial joins together and extracts the attribute data into a .csv file&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;The model that I have built works fine, however I am having issues with optimising performance and am wondering if anyone has advice for me on how to improve the speed and cut out unecessary steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, I know my model is not optimised, as to get my final output I have to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Iterate through each feature point and create a service area which I then pull out the polygon features from using Select Data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Perform the spatial join which generates a seperate polygon feature (I store this using the in_memory option)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Collect the output of each Spatial Join output using Collect Values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Merge the polygons together (into a local folder) and then extract the attribute data into a .csv using Extract Feature to Ascii.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My main issue is with the last process. Firstly I am unable to save this output using in_memory and I am not sure why this is the case, and secondly I am convinced that there must be a way in which I can avoid having to perform the Merge function to join all the results of each spatial join together in a .CSV table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to know therefore is if there there a way to extract the attribute data from each spatial join and merge them into a table without having to go through the process of merging the spatial join polygons together?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ross&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 11:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extracting-and-merging-attribute-data-from-network/m-p/355637#M12337</guid>
      <dc:creator>RossPudney</dc:creator>
      <dc:date>2012-09-18T11:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting and merging attribute data from Network Analyst in Modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extracting-and-merging-attribute-data-from-network/m-p/355638#M12338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ross,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model with the iterator and subsequent downstream processing should sit in a model which ends with your collects tool. That whole model is then a sub-model in another model which has your sub-model feeding into a merge tool. You'll need to expose your inputs/outputs as parameters so you can link the final collects from the sub-model into the merge tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the image on this&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_using_Model_Only_tools_in_ModelBuilder/00400000001m000000/GUID-9F197B15-27F6-46EA-BAC5-7A722C5A3C4E/" rel="nofollow" target="_blank"&gt; page&lt;/A&gt;&lt;SPAN&gt; is misleading as the merge would be executed on every cycle of the iteration tool, which is crazy! Although the dotted line seems to hint that it's a submodel but thats not what is displaying...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 15:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extracting-and-merging-attribute-data-from-network/m-p/355638#M12338</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-09-18T15:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting and merging attribute data from Network Analyst in Modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extracting-and-merging-attribute-data-from-network/m-p/355639#M12339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ross,&lt;BR /&gt;&lt;BR /&gt;The model with the iterator and subsequent downstream processing should sit in a model which ends with your collects tool. That whole model is then a sub-model in another model which has your sub-model feeding into a merge tool. You'll need to expose your inputs/outputs as parameters so you can link the final collects from the sub-model into the merge tool.&lt;BR /&gt;&lt;BR /&gt;I believe the image on this&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_using_Model_Only_tools_in_ModelBuilder/00400000001m000000/GUID-9F197B15-27F6-46EA-BAC5-7A722C5A3C4E/"&gt; page&lt;/A&gt; is misleading as the merge would be executed on every cycle of the iteration tool, which is crazy! Although the dotted line seems to hint that it's a submodel but thats not what is displaying...&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Duncan, that did significantly speed up the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a tip for anyone replicating something similar - I was saving all my outputs to the in_memory workspace, and when I ran the sub model within a model, it was failing once it started the Merge function (ie: once the sub-model had complete). The reason this happened was that I had the outputs of the last function in the sub model (Table Select) as an Intermediate Layer before I used the Collect Events tool. This meant that when the sub-model completed - the intermediate data deleted all the files which the collect events function was calling. Unchecking the intermediate layer option off fixed this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 14:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extracting-and-merging-attribute-data-from-network/m-p/355639#M12339</guid>
      <dc:creator>RossPudney</dc:creator>
      <dc:date>2012-09-21T14:58:53Z</dc:date>
    </item>
  </channel>
</rss>

