<?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: Joining multiple feature classes to their corresponding tables in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/joining-multiple-feature-classes-to-their/m-p/79273#M2765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/join-field.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Join Field &lt;/A&gt;tool will actually join fields from one feature class to another.&amp;nbsp; If this is what you want to do, you're on the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could actually use something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;soils &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; soil &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; soils&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;JoinField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;soil&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"soilcode"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"soiltype"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"code"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"land_use"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"land_cover"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above will join the &lt;STRONG&gt;'soiltype'&lt;/STRONG&gt; table's fields &lt;STRONG&gt;'land_use'&lt;/STRONG&gt; and&lt;STRONG&gt; 'land_cover'&lt;/STRONG&gt; to each feature class in the soils list using the &lt;STRONG&gt;'soilcode'&lt;/STRONG&gt; and &lt;STRONG&gt;'code'&lt;/STRONG&gt; fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A great way to start learning python is to run a tool in ArcMap.&amp;nbsp; Click on Geoprocessing menu &amp;gt; Results.&amp;nbsp; Right-click on the results &amp;gt; Copy as Python snippet.&amp;nbsp; You can the paste the code in ArcMap's python window, or a python IDE of your choose, such as &lt;A href="https://sourceforge.net/projects/pyscripter/files/?source=navbar" rel="nofollow noopener noreferrer" target="_blank"&gt;PyScripter&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:03:26 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-10T23:03:26Z</dc:date>
    <item>
      <title>Joining multiple feature classes to their corresponding tables</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/joining-multiple-feature-classes-to-their/m-p/79272#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to join nine feature classes to the nine tables that go with them and it all needs to be in a loop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done this so far&lt;/P&gt;&lt;P&gt;soils = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P&gt;for soil in range(0,len(soils)):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.JoinField_management()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if what I have done so far is correct and what to put in the parentheses so that all tables are joined to the right feature class. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 17:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/joining-multiple-feature-classes-to-their/m-p/79272#M2764</guid>
      <dc:creator>RyanFelten1</dc:creator>
      <dc:date>2016-09-02T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple feature classes to their corresponding tables</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/joining-multiple-feature-classes-to-their/m-p/79273#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/join-field.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Join Field &lt;/A&gt;tool will actually join fields from one feature class to another.&amp;nbsp; If this is what you want to do, you're on the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could actually use something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;soils &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; soil &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; soils&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;JoinField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;soil&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"soilcode"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"soiltype"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"code"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"land_use"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"land_cover"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above will join the &lt;STRONG&gt;'soiltype'&lt;/STRONG&gt; table's fields &lt;STRONG&gt;'land_use'&lt;/STRONG&gt; and&lt;STRONG&gt; 'land_cover'&lt;/STRONG&gt; to each feature class in the soils list using the &lt;STRONG&gt;'soilcode'&lt;/STRONG&gt; and &lt;STRONG&gt;'code'&lt;/STRONG&gt; fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A great way to start learning python is to run a tool in ArcMap.&amp;nbsp; Click on Geoprocessing menu &amp;gt; Results.&amp;nbsp; Right-click on the results &amp;gt; Copy as Python snippet.&amp;nbsp; You can the paste the code in ArcMap's python window, or a python IDE of your choose, such as &lt;A href="https://sourceforge.net/projects/pyscripter/files/?source=navbar" rel="nofollow noopener noreferrer" target="_blank"&gt;PyScripter&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/joining-multiple-feature-classes-to-their/m-p/79273#M2765</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T23:03:26Z</dc:date>
    </item>
  </channel>
</rss>

