<?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: Replacing geometry of multiple features in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1641265#M98113</link>
    <description>&lt;P&gt;This worked, thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2025 15:55:46 GMT</pubDate>
    <dc:creator>SrinijaKonduru</dc:creator>
    <dc:date>2025-08-12T15:55:46Z</dc:date>
    <item>
      <title>Replacing geometry of multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1634926#M97424</link>
      <description>&lt;P&gt;I am using ArcGIS Pro, and I have 2 feature layers of polygon type that have a couple similar fields. One layer has the right shape geometry, but the other layer has the right information. How do I replace the geometry of all the fields that have the right information with that of the right geometry. The Replace Geometry and Transfer attributes functions work for one shape at a time. I have thousands to work with, so help me out please.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 12:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1634926#M97424</guid>
      <dc:creator>SrinijaKonduru</dc:creator>
      <dc:date>2025-07-22T12:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing geometry of multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1634967#M97426</link>
      <description>&lt;P&gt;There's a method to do this with python and UpdateCursor, since you can read/write the special SHAPE@ geometry 'field' like you would for other attribute fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need a unique ID or other value to positively match features from one feature class to the other to transfer the SHAPE. Do you have a such an attribute in each feature class?&lt;/P&gt;&lt;P&gt;The python workflow would be something like this:&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;# Define the paths to your feature classes&lt;BR /&gt;source_fc = "path_to_source_feature_class"&lt;BR /&gt;target_fc = "path_to_target_feature_class"&lt;/P&gt;&lt;P&gt;# Define the fields&lt;BR /&gt;unique_id_field = "your_unique_id_field" # This is the common unique ID field&lt;BR /&gt;geometry_field = "SHAPE@" # For accessing geometries&lt;/P&gt;&lt;P&gt;# Create a dictionary from the source feature class&lt;BR /&gt;geometry_dict = {}&lt;/P&gt;&lt;P&gt;# Use a SearchCursor to populate the dictionary with geometries from the source_fc&lt;BR /&gt;with arcpy.da.SearchCursor(source_fc, [unique_id_field, geometry_field]) as search_cursor:&lt;BR /&gt;for row in search_cursor:&lt;BR /&gt;unique_id = row[0]&lt;BR /&gt;geometry = row[1]&lt;BR /&gt;geometry_dict[unique_id] = geometry&lt;/P&gt;&lt;P&gt;# Use an UpdateCursor to update the geometries in the target_fc&lt;BR /&gt;with arcpy.da.UpdateCursor(target_fc, [unique_id_field, geometry_field]) as update_cursor:&lt;BR /&gt;for row in update_cursor:&lt;BR /&gt;unique_id = row[0]&lt;BR /&gt;&lt;BR /&gt;if unique_id in geometry_dict:&lt;BR /&gt;# Update the geometry in the target_fc if the unique ID matches&lt;BR /&gt;row[1] = geometry_dict[unique_id]&lt;BR /&gt;update_cursor.updateRow(row)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 16:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1634967#M97426</guid>
      <dc:creator>CalvinHarmin</dc:creator>
      <dc:date>2025-07-22T16:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing geometry of multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1634969#M97427</link>
      <description>&lt;P&gt;Do you have a unique key between the two layers? Perhaps you could do a join by attribute between the two layers and transfer your attributes that way? Once you've done the join, you'd just use the calculate field tool to transfer the attributes. I don't think you'll be able to transfer the geometry that way though, so you'd need to transfer the attributes over to the layer that has the correct geometry.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 14:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1634969#M97427</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2025-07-22T14:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing geometry of multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1641265#M98113</link>
      <description>&lt;P&gt;This worked, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 15:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/replacing-geometry-of-multiple-features/m-p/1641265#M98113</guid>
      <dc:creator>SrinijaKonduru</dc:creator>
      <dc:date>2025-08-12T15:55:46Z</dc:date>
    </item>
  </channel>
</rss>

