<?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 Using iterator to create new fields in a table based on values in a different table in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061607#M25563</link>
    <description>&lt;P&gt;I have a table with a list of threatened species. Using model builder I want to add fields to a different layer - one field for every unique species value. The list will vary and the number of species will vary too so I can't create a predefined list of new fields.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 22:24:24 GMT</pubDate>
    <dc:creator>SteveH</dc:creator>
    <dc:date>2021-05-25T22:24:24Z</dc:date>
    <item>
      <title>Using iterator to create new fields in a table based on values in a different table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061607#M25563</link>
      <description>&lt;P&gt;I have a table with a list of threatened species. Using model builder I want to add fields to a different layer - one field for every unique species value. The list will vary and the number of species will vary too so I can't create a predefined list of new fields.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 22:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061607#M25563</guid>
      <dc:creator>SteveH</dc:creator>
      <dc:date>2021-05-25T22:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using iterator to create new fields in a table based on values in a different table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061614#M25564</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-fields.htm" target="_blank"&gt;Add Fields (multiple) (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;just make sure your field names comply with geodatabase field specifications (skip shapefiles/dbase altogether).&amp;nbsp; (no spaces in name, keep them short etc etc).&lt;/P&gt;&lt;P&gt;It would be simpler if you just pre-parsed the list.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does your table of threatened species look like?&amp;nbsp; are the species in one field in a table?&lt;/P&gt;&lt;P&gt;What type of fields do you want (text, boolean, integer, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp; There are simple ways to get the unique names from data.&lt;/P&gt;&lt;P&gt;Modelbuilder seems like overkill unless you are going to repeat this endlessly&lt;/P&gt;&lt;P&gt;Back to you for details...&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 22:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061614#M25564</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-05-25T22:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using iterator to create new fields in a table based on values in a different table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061625#M25565</link>
      <description>&lt;P&gt;Thanks Dan, this is a small part of a much larger model I'm building in Model builder. I'm kind of new to iterators so I'm not sure how to set this up.&lt;/P&gt;&lt;P&gt;All of the species are in a single field in a point file and I would prefer to create Text fields named ThrSpec_1, ThrSpec_2 etc in a Polygon file of land parcels and populate the fields of selected records with the relevant species name.&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;Thanks, Steve&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 23:28:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061625#M25565</guid>
      <dc:creator>SteveH</dc:creator>
      <dc:date>2021-05-25T23:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using iterator to create new fields in a table based on values in a different table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061638#M25566</link>
      <description>&lt;P&gt;Getting closer...&lt;/P&gt;&lt;P&gt;The first thing to ask, is did you do a spatial join of the polygon layer to the points to find out what which polygon the points belong to?&lt;/P&gt;&lt;P&gt;Second, there isn't going to be the same number of threatened species in each polygon I suspect, so you need to know ahead of time how many fields to create or a plan to deal with this.&lt;/P&gt;&lt;P&gt;Third, do you just want the species name or the species name and number to be recorded if there was more than one recording? (thinking ahead).&lt;/P&gt;&lt;P&gt;Final table layout????&lt;/P&gt;&lt;P&gt;PolyID,&amp;nbsp;&lt;SPAN&gt;ThrSpec_1, N_1, ThrSpec_2,&amp;nbsp; N_2, ThrSpec_3, N_3, ....&amp;nbsp; ThrSpec_N, N_n&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parrot,&amp;nbsp; 1000,&amp;nbsp; budgie,&amp;nbsp; 5, crow, 300&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parrot,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3,&amp;nbsp; budgie,&amp;nbsp; 0,&amp;nbsp; crow,&amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parrot,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,&amp;nbsp; budgie, 10,&amp;nbsp; crow,&amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OR!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PolyID,&amp;nbsp;&lt;SPAN&gt;Parrot, Budgie,&amp;nbsp; Crow, Turkey_Vulture,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5,&amp;nbsp; &amp;nbsp; , 300,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OR !!!!&lt;/P&gt;&lt;P&gt;something completely different?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 01:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061638#M25566</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-05-26T01:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using iterator to create new fields in a table based on values in a different table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061705#M25567</link>
      <description>&lt;P&gt;Joins seem a bit clunky in model builder so I was going to do an iterative select by location for each species. I don't need species counts, this is just a presence /absence. So reading down Column ThrSpec_1 may read Devil, null, null, Devil, Devil etc. ThrSpec_2 may be null, Quoll, Quoll, null etc...&lt;/P&gt;&lt;P&gt;Part of the reason I wanted to do this iteratively was to create the columns on the fly as needed - select unique species value 1, create column, select parcels, fill values. Repeat for unique value 2. etc. I just don't know how to use an iterator to carry out a task on a different layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 10:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-iterator-to-create-new-fields-in-a-table/m-p/1061705#M25567</guid>
      <dc:creator>SteveH</dc:creator>
      <dc:date>2021-05-26T10:57:05Z</dc:date>
    </item>
  </channel>
</rss>

