I'm working to develop a python script which merges two feature classes into one. I found the following arcpy example quite helpful, however it's only provides an example of how you might approach the problem of mapping input fields with different names and logically similar content for 1 input field from the 2 feature classes. My issue is that I have many fields from both input datasets which contain logically similar content.
Example from ArcPy docs:
<SPAN class="keyword token">import</SPAN> arcpy
outfc <SPAN class="operator token">=</SPAN> <SPAN class="string token">"C:/data/CityData.gdb/AllBlocks"</SPAN>
<SPAN class="comment token"># Want to merge these two feature classes together. Have a field</SPAN>
<SPAN class="comment token"># that has the same content but the names are slightly different:</SPAN>
<SPAN class="comment token"># Blocks1 has TRACT2000 and Blocks2 TRACTCODE. Name the output</SPAN>
<SPAN class="comment token"># the same as Blocks1.</SPAN>
<SPAN class="comment token">#</SPAN>
fc1 <SPAN class="operator token">=</SPAN> <SPAN class="string token">"C:/data/CityData.gdb/Blocks1"</SPAN>
fc2 <SPAN class="operator token">=</SPAN> <SPAN class="string token">"C:/data/CityData.gdb/Blocks2"</SPAN>
<SPAN class="comment token"># Create a new fieldmappings and add the two input feature classes.</SPAN>
<SPAN class="comment token">#</SPAN>
fieldmappings <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>FieldMappings<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
fieldmappings<SPAN class="punctuation token">.</SPAN>addTable<SPAN class="punctuation token">(</SPAN>fc1<SPAN class="punctuation token">)</SPAN>
fieldmappings<SPAN class="punctuation token">.</SPAN>addTable<SPAN