<?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 Compare spatial and attribute changes between two feature classes and use changes to update other feature classes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/compare-spatial-and-attribute-changes-between-two/m-p/62159#M4983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two line feature classes, I need to compare the two(One being constantly edited) to see changes done on the spatial and attribute information, and also be able use these changes to update a master feature class. I need to develop python script or an Arcpy tool to that.&lt;/P&gt;&lt;P&gt;I started with detecting feature changes too in ArcMap and this is what I have so far, Any help would be greatly appreciated. I used shapefiles in the sample code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy
&lt;SPAN style="color: #cc7832;"&gt;from &lt;/SPAN&gt;arcpy &lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;env

&lt;SPAN style="color: #808080;"&gt;# Set environment settings
&lt;/SPAN&gt;env.overwriteOutput = &lt;SPAN style="color: #8888c6;"&gt;True
&lt;/SPAN&gt;env.workspace = &lt;SPAN style="color: #a5c261;"&gt;r""
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Set local variables
&lt;/SPAN&gt;updateFeatures = &lt;SPAN style="color: #a5c261;"&gt;"O:\All_In\GIS Projects\blocks\blocks\Streetlines_Updated.shp"
&lt;/SPAN&gt;baseFeatures = &lt;SPAN style="color: #a5c261;"&gt;r"O:\All_In\GIS Projects\blocks\blocks\Streetlines_Updated 2020.shp"
&lt;/SPAN&gt;dfcOutput = &lt;SPAN style="color: #a5c261;"&gt;r"O:\All_In\GIS Projects\blocks\blocks\latestUpdates.shp"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;search_distance = &lt;SPAN style="color: #a5c261;"&gt;"300 Feet"
&lt;/SPAN&gt;match_fields = &lt;SPAN style="color: #a5c261;"&gt;"name, class"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;statsTable = &lt;SPAN style="color: #a5c261;"&gt;"new_roads_stats"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Perform spatial change detection
&lt;/SPAN&gt;arcpy.DetectFeatureChanges_management(updateFeatures&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;baseFeatures&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;dfcOutput&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;search_distance&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;match_fields)&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:22:06 GMT</pubDate>
    <dc:creator>BENAIKINS</dc:creator>
    <dc:date>2021-12-10T22:22:06Z</dc:date>
    <item>
      <title>Compare spatial and attribute changes between two feature classes and use changes to update other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/compare-spatial-and-attribute-changes-between-two/m-p/62159#M4983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two line feature classes, I need to compare the two(One being constantly edited) to see changes done on the spatial and attribute information, and also be able use these changes to update a master feature class. I need to develop python script or an Arcpy tool to that.&lt;/P&gt;&lt;P&gt;I started with detecting feature changes too in ArcMap and this is what I have so far, Any help would be greatly appreciated. I used shapefiles in the sample code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy
&lt;SPAN style="color: #cc7832;"&gt;from &lt;/SPAN&gt;arcpy &lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;env

&lt;SPAN style="color: #808080;"&gt;# Set environment settings
&lt;/SPAN&gt;env.overwriteOutput = &lt;SPAN style="color: #8888c6;"&gt;True
&lt;/SPAN&gt;env.workspace = &lt;SPAN style="color: #a5c261;"&gt;r""
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Set local variables
&lt;/SPAN&gt;updateFeatures = &lt;SPAN style="color: #a5c261;"&gt;"O:\All_In\GIS Projects\blocks\blocks\Streetlines_Updated.shp"
&lt;/SPAN&gt;baseFeatures = &lt;SPAN style="color: #a5c261;"&gt;r"O:\All_In\GIS Projects\blocks\blocks\Streetlines_Updated 2020.shp"
&lt;/SPAN&gt;dfcOutput = &lt;SPAN style="color: #a5c261;"&gt;r"O:\All_In\GIS Projects\blocks\blocks\latestUpdates.shp"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;search_distance = &lt;SPAN style="color: #a5c261;"&gt;"300 Feet"
&lt;/SPAN&gt;match_fields = &lt;SPAN style="color: #a5c261;"&gt;"name, class"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;statsTable = &lt;SPAN style="color: #a5c261;"&gt;"new_roads_stats"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Perform spatial change detection
&lt;/SPAN&gt;arcpy.DetectFeatureChanges_management(updateFeatures&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;baseFeatures&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;dfcOutput&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;search_distance&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;match_fields)&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:22:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/compare-spatial-and-attribute-changes-between-two/m-p/62159#M4983</guid>
      <dc:creator>BENAIKINS</dc:creator>
      <dc:date>2021-12-10T22:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare spatial and attribute changes between two feature classes and use changes to update other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/compare-spatial-and-attribute-changes-between-two/m-p/62160#M4984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this has a dependency on Data Interoperability but may be a start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pm.maps.arcgis.com/home/item.html?id=834e3ba8034e4e7f83d9fc4fcfb5713c" title="https://pm.maps.arcgis.com/home/item.html?id=834e3ba8034e4e7f83d9fc4fcfb5713c"&gt;https://pm.maps.arcgis.com/home/item.html?id=834e3ba8034e4e7f83d9fc4fcfb5713c&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2020 16:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/compare-spatial-and-attribute-changes-between-two/m-p/62160#M4984</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2020-10-07T16:00:49Z</dc:date>
    </item>
  </channel>
</rss>

